Author: adietish
Date: 2010-09-10 09:15:41 -0400 (Fri, 10 Sep 2010)
New Revision: 24865
Modified:
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
Log:
[JBIDE-7041] put jboss tools version into ad content (utm_content), test triggered,
waiting for results
Modified:
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
===================================================================
---
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java 2010-09-10
13:14:15 UTC (rev 24864)
+++
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java 2010-09-10
13:15:41 UTC (rev 24865)
@@ -935,26 +935,27 @@
/**
* FAILED
*/
- @Test
- public void testJBossToolsVersionInRefererrer() throws IOException {
- TestHttpGetMethod method = new TestHttpGetMethod();
- String url = "http://www.google-analytics.com/__utm.gif?utmwv=4.7.2"
- + "&utmn=818594305"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-US"
- + "&utmdt=testJBossToolsVersionInRefererrer"
- + "&utmfl=1.6.0_20"
- + "&utmr=1.0.0.qualifier"
- + "&utmp=testJBossToolsVersionInRefererrer"
- + "&utmac=UA-17645367-1"
- +
"&utmcc=__utma%3D999.43297294488397354581284108794036.1284108794025.1284108794025.1284108794025.1%3B%2B__utmz%3D999.1284108794025.1.1.%EF%BF%BFutmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29%7Cutmctr%3DVPE-%EF%BF%BF%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+ // @Test
+ // public void testJBossToolsVersionInRefererrer() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?utmwv=4.7.2"
+ // + "&utmn=818594305"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-US"
+ // + "&utmdt=testJBossToolsVersionInRefererrer"
+ // + "&utmfl=1.6.0_20"
+ // + "&utmr=1.0.0.qualifier"
+ // + "&utmp=testJBossToolsVersionInRefererrer"
+ // + "&utmac=UA-17645367-1"
+ // +
+ //
"&utmcc=__utma%3D999.43297294488397354581284108794036.1284108794025.1284108794025.1284108794025.1%3B%2B__utmz%3D999.1284108794025.1.1.%EF%BF%BFutmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29%7Cutmctr%3DVPE-%EF%BF%BF%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
@Test
public void testJBossToolsVersionInAdContent() throws IOException {
@@ -1019,7 +1020,7 @@
method.request(url);
assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
}
-
+
@Test
public void testWinVistaUserAgent() throws IOException {
TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.WINXP);
@@ -1040,7 +1041,7 @@
method.request(url);
assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
}
-
+
@Test
public void testWinXPUserAgent() throws IOException {
TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.WINXP);
@@ -1103,7 +1104,7 @@
method.request(url);
assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
}
-
+
@Test
public void testMacSnowLeopardUserAgent() throws IOException {
TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.MACOS_SNOWLEO);
@@ -1124,7 +1125,7 @@
method.request(url);
assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
}
-
+
protected class TestHttpGetMethod extends HttpGetRequest {
private HttpURLConnection urlConnection;
Show replies by date