JBoss Tools SVN: r24862 - in trunk/usage: plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 08:34:31 -0400 (Fri, 10 Sep 2010)
New Revision: 24862
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java
Log:
[JBIDE-7041] referrer test failed, not reported in GA, getting back to no-referrer implementation
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java 2010-09-10 12:27:03 UTC (rev 24861)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java 2010-09-10 12:34:31 UTC (rev 24862)
@@ -18,16 +18,16 @@
private String accountName;
private String hostName;
- private String referrer;
+ private String referral;
- public AbstractGoogleAnalyticsParameters(String accountName, String hostName, String referrer) {
+ public AbstractGoogleAnalyticsParameters(String accountName, String hostName, String referral) {
this.accountName = accountName;
this.hostName = hostName;
- this.referrer = referrer;
+ this.referral = referral;
}
- public String getReferrer() {
- return referrer;
+ public String getReferral() {
+ return referral;
}
public String getAccountName() {
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java 2010-09-10 12:27:03 UTC (rev 24861)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java 2010-09-10 12:34:31 UTC (rev 24862)
@@ -45,9 +45,9 @@
this(accountName, hostName, IGoogleAnalyticsParameters.VALUE_NO_REFERRAL, preferences);
}
- public AbstractEclipseEnvironment(String accountName, String hostName, String referrer,
+ public AbstractEclipseEnvironment(String accountName, String hostName, String referral,
IEclipsePreferences preferences) {
- super(accountName, hostName, referrer);
+ super(accountName, hostName, referral);
this.random = new Random();
this.preferences = preferences;
eclipseUserAgent = createEclipseUserAgent();
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 12:27:03 UTC (rev 24861)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 12:34:31 UTC (rev 24862)
@@ -54,12 +54,4 @@
}
return builder.toString();
}
-
- public String getReferral() {
- return getBundleVersion();
- }
-
- private String getBundleVersion() {
- return JBossToolsUsageActivator.getDefault().getBundle().getVersion().toString();
- }
}
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java 2010-09-10 12:27:03 UTC (rev 24861)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java 2010-09-10 12:34:31 UTC (rev 24862)
@@ -49,7 +49,7 @@
+ "&utmdt=testing-strategy"
+ "&utmhid=1087431432"
+ "&utmr="
- + JBossToolsUsageActivator.getDefault().getBundle().getVersion()
+ + IGoogleAnalyticsParameters.VALUE_NO_REFERRAL
+ "&utmp=%2Ftesting%2Fstrategy"
+ "&utmfl="
+ ReportingEclipseEnvironmentFake.JAVA_VERSION
15 years, 7 months
JBoss Tools SVN: r24861 - in trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics: eclipse and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 08:27:03 -0400 (Fri, 10 Sep 2010)
New Revision: 24861
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java
Log:
[JBIDE-7041] referrer test failed, not reported in GA, getting back to no-referrer implementation
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java 2010-09-10 11:03:07 UTC (rev 24860)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java 2010-09-10 12:27:03 UTC (rev 24861)
@@ -18,12 +18,18 @@
private String accountName;
private String hostName;
+ private String referrer;
- public AbstractGoogleAnalyticsParameters(String accountName, String hostName) {
+ public AbstractGoogleAnalyticsParameters(String accountName, String hostName, String referrer) {
this.accountName = accountName;
this.hostName = hostName;
+ this.referrer = referrer;
}
+ public String getReferrer() {
+ return referrer;
+ }
+
public String getAccountName() {
return accountName;
}
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java 2010-09-10 11:03:07 UTC (rev 24860)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java 2010-09-10 12:27:03 UTC (rev 24861)
@@ -26,7 +26,8 @@
/**
* @author Andre Dietisheim
*/
-public abstract class AbstractEclipseEnvironment extends AbstractGoogleAnalyticsParameters implements IGoogleAnalyticsParameters {
+public abstract class AbstractEclipseEnvironment extends AbstractGoogleAnalyticsParameters implements
+ IGoogleAnalyticsParameters {
private static final String SYSPROP_JAVA_VERSION = "java.version";
@@ -41,7 +42,12 @@
private IUserAgent eclipseUserAgent;
public AbstractEclipseEnvironment(String accountName, String hostName, IEclipsePreferences preferences) {
- super(accountName, hostName);
+ this(accountName, hostName, IGoogleAnalyticsParameters.VALUE_NO_REFERRAL, preferences);
+ }
+
+ public AbstractEclipseEnvironment(String accountName, String hostName, String referrer,
+ IEclipsePreferences preferences) {
+ super(accountName, hostName, referrer);
this.random = new Random();
this.preferences = preferences;
eclipseUserAgent = createEclipseUserAgent();
@@ -111,7 +117,8 @@
if (userId == null) {
userId = createIdentifier();
preferences.put(IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID, userId);
- PreferencesUtils.checkedSavePreferences(preferences, JBossToolsUsageActivator.getDefault(), GoogleAnalyticsEclipseMessages.EclipseEnvironment_Error_SavePreferences);
+ PreferencesUtils.checkedSavePreferences(preferences, JBossToolsUsageActivator.getDefault(),
+ GoogleAnalyticsEclipseMessages.EclipseEnvironment_Error_SavePreferences);
}
return userId;
}
@@ -129,7 +136,7 @@
}
public abstract String getKeyword();
-
+
public String getCurrentVisit() {
return currentVisit;
}
@@ -152,7 +159,8 @@
currentVisit = String.valueOf(System.currentTimeMillis());
visitCount++;
preferences.putLong(IUsageReportPreferenceConstants.VISIT_COUNT, visitCount);
- PreferencesUtils.checkedSavePreferences(preferences, JBossToolsUsageActivator.getDefault(), GoogleAnalyticsEclipseMessages.EclipseEnvironment_Error_SavePreferences);
+ PreferencesUtils.checkedSavePreferences(preferences, JBossToolsUsageActivator.getDefault(),
+ GoogleAnalyticsEclipseMessages.EclipseEnvironment_Error_SavePreferences);
}
public String getFlashVersion() {
15 years, 7 months
JBoss Tools SVN: r24860 - in trunk/usage: tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 07:03:07 -0400 (Fri, 10 Sep 2010)
New Revision: 24860
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/EclipseUserAgent.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
Log:
[JBIDE-7043] reports various versions of windows and macos now (no version in FF linux user agent string, just architecture)
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/EclipseUserAgent.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/EclipseUserAgent.java 2010-09-10 10:13:32 UTC (rev 24859)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/EclipseUserAgent.java 2010-09-10 11:03:07 UTC (rev 24860)
@@ -26,12 +26,14 @@
private static final String ECLIPSE_RUNTIME_BULDEID = "org.eclipse.core.runtime"; //$NON-NLS-1$
- private static final String USERAGENT_WIN = "{0}/{1} (Windows; U; Windows NT 6.1; {2})"; //$NON-NLS-1$
- private static final String USERAGENT_MAC = "{0}/{1} (Macintosh; U; Intel Mac OS X 10.5; {2})"; //$NON-NLS-1$
+ private static final String USERAGENT_WIN = "{0}/{1} (Windows; U; Windows NT {2}; {3})"; //$NON-NLS-1$
+ private static final String USERAGENT_MAC = "{0}/{1} (Macintosh; U; Intel Mac OS X {2}; {3})"; //$NON-NLS-1$
private static final String USERAGENT_LINUX = "{0}/{1} (X11; U; Linux i686; {2})"; //$NON-NLS-1$
-
- public static final char VERSION_DELIMITER = '.';
+ public static final char VERSION_DELIMITER = '.'; //$NON-NLS-1$
+
+ private static final String PROP_OS_VERSION = "os.version"; //$NON-NLS-1$
+
private String browserLanguage;
private String createBrowserLanguage() {
@@ -51,18 +53,18 @@
builder.append(nl.substring(indexOf + 1));
return builder.toString();
}
-
+
protected String getNL() {
return Platform.getNL();
}
-
+
public String getBrowserLanguage() {
if (browserLanguage == null) {
browserLanguage = createBrowserLanguage();
}
return browserLanguage;
}
-
+
public String toString() {
String productId = getApplicationName();
String productVersion = getApplicationVersion();
@@ -82,6 +84,7 @@
getUserAgentPattern(getOS())
, productId
, productVersion
+ , getOSVersion()
, getBrowserLanguage()
);
}
@@ -90,6 +93,34 @@
return Platform.getOS();
}
+ /**
+ * Returns the version of the operating system this jre is currently running
+ * on.
+ *
+ * @return the os version
+ *
+ * @see <a href="http://lopica.sourceforge.net/os.html">list of os versions
+ * and os names</a> return by the j
+ */
+ protected Object getOSVersion() {
+ return System.getProperty(PROP_OS_VERSION);
+ }
+
+ private String getUserAgentPattern(String os) {
+ String userAgentPattern = ""; //$NON-NLS-1$
+ /*
+ * TODO: implement architecture (i686, x86_64 etc.), Windows version, MacOS version etc.
+ */
+ if (Platform.OS_LINUX.equals(os)) {
+ return USERAGENT_LINUX; //$NON-NLS-1$
+ } else if (Platform.OS_MACOSX.equals(os)) {
+ return USERAGENT_MAC; //$NON-NLS-1$
+ } else if (Platform.OS_WIN32.equals(os)) {
+ return USERAGENT_WIN; //$NON-NLS-1$
+ }
+ return userAgentPattern;
+ }
+
protected String getApplicationName() {
return getApplicationBundle().getSymbolicName();
}
@@ -103,7 +134,7 @@
return fullVersion;
}
}
-
+
/**
* Returns the bundle that launched the application that this class runs in.
*
@@ -117,19 +148,4 @@
return Platform.getBundle(ECLIPSE_RUNTIME_BULDEID);
}
}
-
- private String getUserAgentPattern(String os) {
- String userAgentPattern = ""; //$NON-NLS-1$
- /*
- * TODO: implement architecture (i686, x86_64 etc.), Windows version, MacOS version etc.
- */
- if (Platform.OS_LINUX.equals(os)) {
- return USERAGENT_LINUX; //$NON-NLS-1$
- } else if (Platform.OS_MACOSX.equals(os)) {
- return USERAGENT_MAC; //$NON-NLS-1$
- } else if (Platform.OS_WIN32.equals(os)) {
- return USERAGENT_WIN; //$NON-NLS-1$
- }
- return userAgentPattern;
- }
}
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java 2010-09-10 10:13:32 UTC (rev 24859)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentFake.java 2010-09-10 11:03:07 UTC (rev 24860)
@@ -10,29 +10,51 @@
private static final String APPLICATION_VERSION = "3.0.1";
public static final String LOCALE_US = "en_US";
+ static final String WIN2000_VERSION = "5.0";
+ static final String WINXP_VERSION = "5.1";
+ static final String VISTA_VERSION = "6.0";
+ static final String WIN7_VERSION = "6.1";
+ static final String MACLEOPARD_VERSION = "10.5";
+ static final String MACSNOWLEOPARD_VERSION = "10.6";
+
private String applicationName;
private String applicationVersion;
private String nl;
private String os;
+ private String osVersion;
public EclipseUserAgentFake() {
- this(APPLICATION_NAME, APPLICATION_VERSION, LOCALE_US, Platform.OS_LINUX);
+ this(APPLICATION_NAME, APPLICATION_VERSION, LOCALE_US, Platform.OS_WIN32, WIN7_VERSION);
}
public EclipseUserAgentFake(String nl) {
- this(APPLICATION_NAME, APPLICATION_VERSION, nl, Platform.OS_LINUX);
+ this(APPLICATION_NAME, APPLICATION_VERSION, nl, Platform.OS_WIN32, WIN7_VERSION);
}
- public EclipseUserAgentFake(String nl, String os) {
- this(APPLICATION_NAME, APPLICATION_VERSION, nl, os);
+ public EclipseUserAgentFake(String nl, String os, String osVersion) {
+ this(APPLICATION_NAME, APPLICATION_VERSION, nl, os, osVersion);
}
- public EclipseUserAgentFake(String applicationName, String applicationVersion, String nl, String os) {
+ /**
+ * Instantiates a fake of the EclipseUserAgent class
+ *
+ * @param applicationName the name of the applicaiton
+ * @param applicationVersion the version of the application
+ * @param nl the platform locale as returned from <code>Platform.getNL()</code>
+ * @param os the os name as return from <code>Platform.getOS()</code>
+ * @param osVersion the version of the os as returned from <code>System.getProperty("os.name")</code>
+ *
+ * @see Platform#getNL()
+ * @see Platform#getOS()
+ * @see System#getProperty("os.version")
+ */
+ public EclipseUserAgentFake(String applicationName, String applicationVersion, String nl, String os, String osVersion) {
Assert.isTrue(nl != null && nl.indexOf(JAVA_LOCALE_DELIMITER) >= 0, "nl parameter must for a java locale string <xx_XX>");
this.applicationName = applicationName;
this.applicationVersion = applicationVersion;
this.nl = nl;
this.os = os;
+ this.osVersion = osVersion;
}
@Override
@@ -51,6 +73,11 @@
}
@Override
+ protected String getOSVersion() {
+ return osVersion;
+ }
+
+ @Override
protected String getApplicationVersion() {
return applicationVersion;
}
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java 2010-09-10 10:13:32 UTC (rev 24859)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/EclipseUserAgentTest.java 2010-09-10 11:03:07 UTC (rev 24860)
@@ -52,21 +52,21 @@
}
@Test
- public void testMacOs() {
- String userAgent = new EclipseUserAgentFake(EclipseUserAgentFake.LOCALE_US, Platform.OS_MACOSX).toString();
- assertOs("Macintosh", "Intel Mac OS X 10.5", userAgent);
+ public void testMacOsSnowLeopard() {
+ String userAgent = new EclipseUserAgentFake(EclipseUserAgentFake.LOCALE_US, Platform.OS_MACOSX, EclipseUserAgentFake.MACSNOWLEOPARD_VERSION).toString();
+ assertOs("Macintosh", "Intel Mac OS X " + EclipseUserAgentFake.MACSNOWLEOPARD_VERSION, userAgent);
}
@Test
public void testLinux() {
- String userAgent = new EclipseUserAgentFake(EclipseUserAgentFake.LOCALE_US, Platform.OS_LINUX).toString();
+ String userAgent = new EclipseUserAgentFake(EclipseUserAgentFake.LOCALE_US, Platform.OS_LINUX, EclipseUserAgentFake.WIN7_VERSION).toString();
assertOs("X11", "Linux i686", userAgent);
}
@Test
- public void testWindows() {
- String userAgent = new EclipseUserAgentFake(EclipseUserAgentFake.LOCALE_US, Platform.OS_WIN32).toString();
- assertOs("Windows", "Windows NT 6.1", userAgent);
+ public void testWindows7() {
+ String userAgent = new EclipseUserAgentFake(EclipseUserAgentFake.LOCALE_US, Platform.OS_WIN32, EclipseUserAgentFake.WIN7_VERSION).toString();
+ assertOs("Windows", "Windows NT " + EclipseUserAgentFake.WIN7_VERSION, userAgent);
}
@Test
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 10:13:32 UTC (rev 24859)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java 2010-09-10 11:03:07 UTC (rev 24860)
@@ -23,592 +23,658 @@
*/
public class JBossToolsUsageRequestsTest {
-// @Ignore
-// @Test
-// public void testUrl0() throws IOException {
-// String userAgent = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) Firefox/10.0.0";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=338321265"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_0() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=338321288"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_0"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156032507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_1() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) v201006010437R-H98-GA";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=3383212651"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030508.195542053.1281528584.1281528584.1281528584.1%3B%2B__utmz%3D156030500.1281528584.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_2() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) Eclipse/3.5.0";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=3383212652"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_2"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030509.1285760712.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_3() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US;) Eclipse/3.5.0";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=3383212651"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_3"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030501.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_4() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=3383212651"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_4"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030502.195542053.1281528584.1281528584.1281528584.1%3B%2B__utmz%3D156030500.1281528584.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_5() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Linux x86_64)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=33832126513"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_5"
-// + "&utmac=UA-17645367-1"
-// + "&__utma%3D156030503.195542053.1281528584.1281528584.1281528584.1%3B%2B__utmz%3D156030500.1281528584.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_6() throws IOException {
-// String userAgent = "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) com.jboss.jbds.product/3.0.1";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=338321265"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_6"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=338321268"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_1() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-us)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=338321068"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmje=1"
-// + "&utmfl=10.1%20r53"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_2() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=338333268"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=-%20JBoss%20Community"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_2"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D156620507.1285760111.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=311333268"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D112660507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_mac() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Macintosh; U; Intel Mac OS X 10.5; fr)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351333268"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_mac"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D133660507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_win() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351333254"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_win"
-// + "&utmhid=1087431432"
-// + "&utmr=0"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D133660522.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_1() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=358333254"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_1"
-// + "&utmhid=1087431432"
-// + "&utmr=smooks|seam|drools|esb"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D133860522.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl8() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=453325272"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-US"
-// + "&utmdt=jboss.org-tools-usage-instance"
-// + "&utmhid=1722580305"
-// + "&utmr=org.jboss.tools.usage.tests"
-// + "&utmp=%2Fjboss.org%2Ftools%2Fusage%2FtestUrl8"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D999.69517276658961975851281943564260.1281943564259.1281943564259.1281943564259.-1%3B%2B__utmz%3D999.1281943564259.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_win_referral() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351334444"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_win_referral"
-// + "&utmhid=1087431432"
-// + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
-// + "&utm_content=test1%7Ctest2%7Ctest3"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_referral"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D133663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_win_adcontent() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=378334444"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_win_adcontent"
-// + "&utmhid=1087431432"
-// + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
-// + "&utm_content=test1%7Ctest2%7Ctest3%7test4"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_adcontent"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D455663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_win_keyword() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=378334354"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_win_keyword"
-// + "&utmhid=1087431432"
-// + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
-// + "&term=test1%7Ctest2%7Ctest3%7test4"
-// + "&utm_term=test1a%7Ctest2a%7Ctest3a%7test4a"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_keyword"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc=__utma%3D887463892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_win_utmz() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351334444"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_win__utmz"
-// + "&utmhid=1087431432"
-// + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
-// + "&utm_content=test1%7Ctest2%7Ctest3"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win__utmz"
-// + "&utmac=UA-17645367-1"
-// + "&utmz=test1%7Ctest2%7Ctest3"
-// + "&utmcc=__utma%3D133663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_win_utmctr() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351334444"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_win__utmctr"
-// + "&utmhid=1087431432"
-// + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
-// + "&utm_content=test1%7Ctest2%7Ctest3"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_utctr"
-// + "&utmac=UA-17645367-1"
-// + "&utmz=test1%7Ctest2%7Ctest3"
-// + "&utmcc=__utma%3D133663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3D%7Cutmctr%3Dtest1%7Ctest2%7Ctest3%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-//
-// @Ignore
-// @Test
-// public void testUrl0_7_3_win_utmctr_lengthtest() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351334794"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-test_0_7_3_win_lengthtest"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_lengthtest"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D133697892.1285760711.1281430767.1281430767.1281430767.1%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Ignore
+ // @Test
+ // public void testUrl0() throws IOException {
+ // String userAgent =
+ // "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) Firefox/10.0.0";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=338321265"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_0() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=338321288"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_0"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156032507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_1() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) v201006010437R-H98-GA";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=3383212651"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_1"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030508.195542053.1281528584.1281528584.1281528584.1%3B%2B__utmz%3D156030500.1281528584.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_2() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) Eclipse/3.5.0";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=3383212652"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_2"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030509.1285760712.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_3() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US;) Eclipse/3.5.0";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=3383212651"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_3"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030501.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_4() throws IOException {
+ // String userAgent = "com.jboss.jbds.product/3.0.1";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=3383212651"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_4"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030502.195542053.1281528584.1281528584.1281528584.1%3B%2B__utmz%3D156030500.1281528584.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_5() throws IOException {
+ // String userAgent = "com.jboss.jbds.product/3.0.1 (Linux x86_64)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=33832126513"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_5"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&__utma%3D156030503.195542053.1281528584.1281528584.1281528584.1%3B%2B__utmz%3D156030500.1281528584.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_6() throws IOException {
+ // String userAgent =
+ // "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100614 Ubuntu/10.04 (lucid) com.jboss.jbds.product/3.0.1";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=338321265"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_6"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=338321268"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_1() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-us)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=338321068"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmje=1"
+ // + "&utmfl=10.1%20r53"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_1"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156030507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_2() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=338333268"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=-%20JBoss%20Community"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_2"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D156620507.1285760111.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (X11; U; Linux x86_64; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=311333268"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D112660507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_mac() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Macintosh; U; Intel Mac OS X 10.5; fr)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351333268"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_mac"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D133660507.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_win() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351333254"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_win"
+ // + "&utmhid=1087431432"
+ // + "&utmr=0"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D133660522.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_1() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=358333254"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_1"
+ // + "&utmhid=1087431432"
+ // + "&utmr=smooks|seam|drools|esb"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_1"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D133860522.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl8() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=453325272"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-US"
+ // + "&utmdt=jboss.org-tools-usage-instance"
+ // + "&utmhid=1722580305"
+ // + "&utmr=org.jboss.tools.usage.tests"
+ // + "&utmp=%2Fjboss.org%2Ftools%2Fusage%2FtestUrl8"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D999.69517276658961975851281943564260.1281943564259.1281943564259.1281943564259.-1%3B%2B__utmz%3D999.1281943564259.1.1.utmcsr%3D%28direct%29%7Cutmccn%3D%28direct%29%7Cutmcmd%3D%28none%29%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_win_referral() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351334444"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_win_referral"
+ // + "&utmhid=1087431432"
+ // + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
+ // + "&utm_content=test1%7Ctest2%7Ctest3"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_referral"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D133663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_win_adcontent() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=378334444"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_win_adcontent"
+ // + "&utmhid=1087431432"
+ // + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
+ // + "&utm_content=test1%7Ctest2%7Ctest3%7test4"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_adcontent"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D455663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_win_keyword() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=378334354"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_win_keyword"
+ // + "&utmhid=1087431432"
+ // + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
+ // + "&term=test1%7Ctest2%7Ctest3%7test4"
+ // + "&utm_term=test1a%7Ctest2a%7Ctest3a%7test4a"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_keyword"
+ // + "&utmac=UA-17645367-1"
+ // +
+ // "&utmcc=__utma%3D887463892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_win_utmz() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351334444"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_win__utmz"
+ // + "&utmhid=1087431432"
+ // + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
+ // + "&utm_content=test1%7Ctest2%7Ctest3"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win__utmz"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmz=test1%7Ctest2%7Ctest3"
+ // +
+ // "&utmcc=__utma%3D133663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_win_utmctr() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351334444"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_win__utmctr"
+ // + "&utmhid=1087431432"
+ // + "&utmr=seam|esb|smooks|birt|bpel|cdi|deltacloud|drools"
+ // + "&utm_content=test1%7Ctest2%7Ctest3"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_utctr"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmz=test1%7Ctest2%7Ctest3"
+ // +
+ // "&utmcc=__utma%3D133663892.1285760711.1281430767.1281430767.1281430767.1%3B%2B__utmz%3D156030500.1281430767.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3D%7Cutmctr%3Dtest1%7Ctest2%7Ctest3%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
+ //
+ // @Ignore
+ // @Test
+ // public void testUrl0_7_3_win_utmctr_lengthtest() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351334794"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-test_0_7_3_win_lengthtest"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl0_7_3_win_lengthtest"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D133697892.1285760711.1281430767.1281430767.1281430767.1%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
-// @Test
-// public void testUrl_utmaCookies_0() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351358794"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_0"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D133697892.111.1281430767.1281430767.1281430767.1%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_utmaCookies_0() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351358794"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_0"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // + "__utma%3D133697892.111.1281430767.1281430767.1281430767.1%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
/**
* this test should create a request to the same url by a different eclipse
@@ -616,268 +682,415 @@
*
* @throws IOException
*/
-// @Test
-// public void testUrl_utmaCookies_0_otherEclipse() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351357694"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_0"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D133697892.2222.1281430767.1281430767.1281430767.1%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_utmaCookies_0_otherEclipse() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351357694"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_0"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // + "__utma%3D133697892.2222.1281430767.1281430767.1281430767.1%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
-// @Test
-// public void testUrl_utmaCookies_1() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=261334794"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_1"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D133697892.1285760711.1281430767.1281430767.1281430867.2%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_utmaCookies_1() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=261334794"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_1"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_1"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D133697892.1285760711.1281430767.1281430767.1281430867.2%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
-// @Test
-// public void testUrl_utmaCookies_1B() throws IOException {
-// String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
-// TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=261390794"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_1B"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_1B"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D133697892.1285760711.1281430767.1281430767.1281430867.2%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_utmaCookies_1B() throws IOException {
+ // String userAgent =
+ // "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
+ // TestHttpGetMethod method = new TestHttpGetMethod(userAgent,
+ // loggingAdapter);
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=261390794"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_1B"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_1B"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D133697892.1285760711.1281430767.1281430767.1281430867.2%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
-// @Test
-// public void testUrl_utmaCookies_2() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351784794"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_2"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_2"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D133697892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_utmaCookies_2() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351784794"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_2"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_2"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D133697892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
-// @Test
-// public void testUrl_utmaCookies_utmb_utmc_1() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=351789994"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D131297892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
-// + "__utmb%3D1%3B%2B"
-// + "__utmc%3D1%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_utmaCookies_utmb_utmc_1() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=351789994"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D131297892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
+ // + "__utmb%3D1%3B%2B"
+ // + "__utmc%3D1%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
/**
* this test should create a request from the same eclipse instance later in
* time (visit count increased, visit timestamps updated, userId identical)
*/
-// @Test
-// public void testUrl_utmaCookies_utmb_utmc_1B() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=35176694"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D131297892.1285760711.1281430767.1281430967.1281430988.3%3B%2B"
-// + "__utmb%3D1%3B%2B"
-// + "__utmc%3D1%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_utmaCookies_utmb_utmc_1B() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=35176694"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D131297892.1285760711.1281430767.1281430967.1281430988.3%3B%2B"
+ // + "__utmb%3D1%3B%2B"
+ // + "__utmc%3D1%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
/**
* this test should create a request from the same eclipse instance later in
* time (visit count increased, visit timestamps updated, userId identical)
*/
-// @Test
-// public void testUrl_debug_utma() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=15176694"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
-// + "__utmb%3D1%3B%2B"
-// + "__utmc%3D1%3B%2B"
-// + "__utmz%3D156030500.1281430767.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
+ // @Test
+ // public void testUrl_debug_utma() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=15176694"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
+ // + "__utmb%3D1%3B%2B"
+ // + "__utmc%3D1%3B%2B"
+ // + "__utmz%3D156030500.1281430767.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+ // + "&gaq=1";
+ // method.request(url);
+ // assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ // }
-// @Test
-// public void testUrl_utma_utmz() throws IOException {
-// TestHttpGetMethod method = new TestHttpGetMethod();
-// String url = "http://www.google-analytics.com/__utm.gif?"
-// + "utmwv=4.7.2"
-// + "&utmn=15176694"
-// + "&utmhn=jboss.org"
-// + "&utmcs=UTF-8"
-// + "&utmsr=1920x1080"
-// + "&utmsc=24-bit"
-// + "&utmul=en-us"
-// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
-// + "&utmhid=1087431432"
-// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
-// + "&utmac=UA-17645367-1"
-// + "&utmcc="
-// + "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
-// + "__utmb%3D1%3B%2B"
-// + "__utmc%3D1%3B%2B"
-// + "__utmz%3D999.1282924103925.1.1."
-// + "utmcsr%3D(direct)%7C"
-// + "utmccn%3D(direct)%7C"
-// + "utmcmd%3D(none)%7C"
-// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
-// + "&gaq=1";
-// method.request(url);
-// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
-// }
-
+ // @Test
+ // public void testUrl_utma_utmz() throws IOException {
+ // TestHttpGetMethod method = new TestHttpGetMethod();
+ // String url = "http://www.google-analytics.com/__utm.gif?"
+ // + "utmwv=4.7.2"
+ // + "&utmn=15176694"
+ // + "&utmhn=jboss.org"
+ // + "&utmcs=UTF-8"
+ // + "&utmsr=1920x1080"
+ // + "&utmsc=24-bit"
+ // + "&utmul=en-us"
+ // + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmhid=1087431432"
+ // + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+ // + "&utmac=UA-17645367-1"
+ // + "&utmcc="
+ // +
+ // "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
+ // + "__utmb%3D1%3B%2B"
+ // + "__utmc%3D1%3B%2B"
+ // + "__utmz%3D999.1282924103925.1.1."
+ // + "utmcsr%3D(direct)%7C"
+ // + "utmccn%3D(direct)%7C"
+ // + "utmcmd%3D(none)%7C"
+ // +
+ // "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%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";
+ + "&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());
}
+
+ enum UserAgentString {
+
+ DEFAULT("com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)"),
+ WIN7("com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)"),
+ WINVISTA("com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.0; en-US)"),
+ WINXP("com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 5.1; en-US)"),
+ WIN2000("com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 5.0; en-US)"),
+ MACOS_SNOWLEO("com.jboss.jbds.product/3.0.1 (Macintosh; U; Intel Mac OS X 10.6; en-US)"),
+ MACOS_LEO("com.jboss.jbds.product/3.0.1 (macintosh; U; Intel Mac OS X 10.5; en-US)");
+
+ private String userAgent;
+
+ UserAgentString(String userAgent) {
+ this.userAgent = userAgent;
+ }
+
+ public String toString() {
+ return userAgent;
+ }
+ }
+
+ @Test
+ public void testWin7UserAgent() throws IOException {
+ TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.WIN7);
+ String url = "http://www.google-analytics.com/__utm.gif?utmwv=4.7.2"
+ + "&utmn=958594305"
+ + "&utmhn=jboss.org"
+ + "&utmcs=UTF-8"
+ + "&utmsr=1920x1080"
+ + "&utmsc=24-bit"
+ + "&utmul=en-US"
+ + "&utmdt=testWin7UserAgent"
+ + "&utmfl=1.6.0_20"
+ + "&utmr=1.0.0.qualifier"
+ + "&utmp=testWin7UserAgent"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D999.43297292388397354581284108794036.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 testWinXPUserAgent() throws IOException {
+ TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.WINXP);
+ String url = "http://www.google-analytics.com/__utm.gif?utmwv=4.7.2"
+ + "&utmn=958593335"
+ + "&utmhn=jboss.org"
+ + "&utmcs=UTF-8"
+ + "&utmsr=1920x1080"
+ + "&utmsc=24-bit"
+ + "&utmul=en-US"
+ + "&utmdt=testWinXPUserAgent"
+ + "&utmfl=1.6.0_20"
+ + "&utmr=1.0.0.qualifier"
+ + "&utmp=testWinXPUserAgent"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D999.43297245388397354581284108794036.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 testWin2000UserAgent() throws IOException {
+ TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.WIN2000);
+ String url = "http://www.google-analytics.com/__utm.gif?utmwv=4.7.2"
+ + "&utmn=958894305"
+ + "&utmhn=jboss.org"
+ + "&utmcs=UTF-8"
+ + "&utmsr=1920x1080"
+ + "&utmsc=24-bit"
+ + "&utmul=en-US"
+ + "&utmdt=testWin2000UserAgent"
+ + "&utmfl=1.6.0_20"
+ + "&utmr=1.0.0.qualifier"
+ + "&utmp=testWin2000UserAgent"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D999.43297292388397354581284108794036.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 testMacLeopardUserAgent() throws IOException {
+ TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.MACOS_LEO);
+ String url = "http://www.google-analytics.com/__utm.gif?utmwv=4.7.2"
+ + "&utmn=958890305"
+ + "&utmhn=jboss.org"
+ + "&utmcs=UTF-8"
+ + "&utmsr=1920x1080"
+ + "&utmsc=24-bit"
+ + "&utmul=en-US"
+ + "&utmdt=testMacLeopardUserAgent"
+ + "&utmfl=1.6.0_20"
+ + "&utmr=1.0.0.qualifier"
+ + "&utmp=testMacLeopardUserAgent"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D999.43297292388397333581284108794036.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 testMacSnowLeopardUserAgent() throws IOException {
+ TestHttpGetMethod method = new TestHttpGetMethod(UserAgentString.MACOS_SNOWLEO);
+ String url = "http://www.google-analytics.com/__utm.gif?utmwv=4.7.2"
+ + "&utmn=958890444"
+ + "&utmhn=jboss.org"
+ + "&utmcs=UTF-8"
+ + "&utmsr=1920x1080"
+ + "&utmsc=24-bit"
+ + "&utmul=en-US"
+ + "&utmdt=testMacSnowLeopardUserAgent"
+ + "&utmfl=1.6.0_20"
+ + "&utmr=1.0.0.qualifier"
+ + "&utmp=testMacSnowLeopardUserAgent"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D999.43297292388397333581222108794036.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());
+ }
+
protected class TestHttpGetMethod extends HttpGetRequest {
private HttpURLConnection urlConnection;
+ public TestHttpGetMethod(UserAgentString userAgentString) {
+ this(userAgentString.toString(), new SystemOutLogger());
+ }
+
public TestHttpGetMethod() {
- super("com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)", new SystemOutLogger());
+ super(UserAgentString.DEFAULT.toString(), new SystemOutLogger());
}
-
+
public TestHttpGetMethod(String userAgent, ILoggingAdapter loggingAdapter) {
super(userAgent, loggingAdapter);
}
15 years, 7 months
JBoss Tools SVN: r24859 - in trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi: internal/core/impl/definition and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-09-10 06:13:32 -0400 (Fri, 10 Sep 2010)
New Revision: 24859
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/FileSet.java
Log:
https://jira.jboss.org/browse/JBIDE-7044
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java 2010-09-10 09:37:28 UTC (rev 24858)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreBuilder.java 2010-09-10 10:13:32 UTC (rev 24859)
@@ -329,19 +329,15 @@
fileSet.add(f.getFullPath(), ts);
}
}
+ else if(path.segmentCount() == srcs[i].segmentCount() + 2
+ && "META-INF".equals(path.segments()[path.segmentCount() - 2])) {
+ addBeansXML(f, fileSet);
+ }
return false;
}
}
if(webinf != null && webinf.isPrefixOf(path)) {
- if(f.getName().equals("beans.xml")) {
- XModelObject beansXML = EclipseResourceUtil.getObjectByResource(f);
- if(beansXML == null) {
- beansXML = EclipseResourceUtil.createObjectForResource(f);
- }
- if(beansXML != null) {
- fileSet.setBeanXML(f.getFullPath(), beansXML);
- }
- }
+ addBeansXML(f, fileSet);
}
}
@@ -371,6 +367,18 @@
}
}
+
+ private void addBeansXML(IFile f, FileSet fileSet) {
+ if(f.getName().equals("beans.xml")) {
+ XModelObject beansXML = EclipseResourceUtil.getObjectByResource(f);
+ if(beansXML == null) {
+ beansXML = EclipseResourceUtil.createObjectForResource(f);
+ }
+ if(beansXML != null) {
+ fileSet.setBeanXML(f.getFullPath(), beansXML);
+ }
+ }
+ }
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java 2010-09-10 09:37:28 UTC (rev 24858)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java 2010-09-10 10:13:32 UTC (rev 24859)
@@ -271,6 +271,7 @@
childPaths = workingCopy.childPaths;
typeDefinitions = workingCopy.typeDefinitions;
annotations = workingCopy.annotations;
+ beanXMLs = workingCopy.beanXMLs;
project.getDelegate().update();
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/FileSet.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/FileSet.java 2010-09-10 09:37:28 UTC (rev 24858)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/FileSet.java 2010-09-10 10:13:32 UTC (rev 24859)
@@ -84,6 +84,7 @@
public void setBeanXML(IPath f, XModelObject o) {
beanXMLs.put(f, o);
+ allpaths.add(f);
}
}
15 years, 7 months
JBoss Tools SVN: r24858 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-09-10 05:37:28 -0400 (Fri, 10 Sep 2010)
New Revision: 24858
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/browse/JBIDE-6810
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2010-09-10 09:30:31 UTC (rev 24857)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2010-09-10 09:37:28 UTC (rev 24858)
@@ -28,7 +28,7 @@
org.jboss.tools.jst.web,
org.eclipse.ui.navigator,
org.eclipse.jdt.ui,
- org.eclipse.wst.common.frameworks,
+ org.eclipse.wst.common.frameworks;visibility:=reexport,
org.eclipse.wst.server.core,
org.eclipse.wst.server.ui,
org.eclipse.jst.j2ee.web,
15 years, 7 months
JBoss Tools SVN: r24857 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-09-10 05:30:31 -0400 (Fri, 10 Sep 2010)
New Revision: 24857
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/browse/JBIDE-6810
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2010-09-10 09:18:07 UTC (rev 24856)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/META-INF/MANIFEST.MF 2010-09-10 09:30:31 UTC (rev 24857)
@@ -54,7 +54,9 @@
org.eclipse.search;bundle-version="3.5.0",
org.jboss.tools.common.el.core,
org.eclipse.wst.html.ui;bundle-version="1.0.401",
- org.eclipse.pde.ui;bundle-version="3.6.0"
+ org.eclipse.pde.ui;bundle-version="3.6.0",
+ org.eclipse.jst.jsf.core,
+ org.eclipse.wst.common.project.facet.core
Bundle-Version: 3.2.0.qualifier
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
15 years, 7 months
JBoss Tools SVN: r24856 - trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 05:18:07 -0400 (Fri, 10 Sep 2010)
New Revision: 24856
Modified:
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
Log:
[JBIDE-7041] testing GA if request with bundle version in referrer is tracked
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 09:05:36 UTC (rev 24855)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java 2010-09-10 09:18:07 UTC (rev 24856)
@@ -16,7 +16,6 @@
import org.jboss.tools.usage.HttpGetRequest;
import org.jboss.tools.usage.ILoggingAdapter;
-import org.junit.Before;
import org.junit.Test;
/**
@@ -24,13 +23,6 @@
*/
public class JBossToolsUsageRequestsTest {
- private ILoggingAdapter loggingAdapter;
-
- @Before
- public void setUp() {
- this.loggingAdapter = new SystemOutLogger();
- }
-
// @Ignore
// @Test
// public void testUrl0() throws IOException {
@@ -591,33 +583,32 @@
// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
// }
- @Test
- public void testUrl_utmaCookies_0() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=351358794"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_0"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D133697892.111.1281430767.1281430767.1281430767.1%3B%2B"
- + "__utmz%3D156030500.1281430767.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+// @Test
+// public void testUrl_utmaCookies_0() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=351358794"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_0"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D133697892.111.1281430767.1281430767.1281430767.1%3B%2B"
+// + "__utmz%3D156030500.1281430767.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
/**
* this test should create a request to the same url by a different eclipse
@@ -625,61 +616,59 @@
*
* @throws IOException
*/
- @Test
- public void testUrl_utmaCookies_0_otherEclipse() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=351357694"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_0"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D133697892.2222.1281430767.1281430767.1281430767.1%3B%2B"
- + "__utmz%3D156030500.1281430767.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+// @Test
+// public void testUrl_utmaCookies_0_otherEclipse() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=351357694"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_0"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_0"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D133697892.2222.1281430767.1281430767.1281430767.1%3B%2B"
+// + "__utmz%3D156030500.1281430767.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
- @Test
- public void testUrl_utmaCookies_1() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=261334794"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_1"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_1"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D133697892.1285760711.1281430767.1281430767.1281430867.2%3B%2B"
- + "__utmz%3D156030500.1281430767.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+// @Test
+// public void testUrl_utmaCookies_1() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=261334794"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_1"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_1"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D133697892.1285760711.1281430767.1281430767.1281430867.2%3B%2B"
+// + "__utmz%3D156030500.1281430767.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
// @Test
// public void testUrl_utmaCookies_1B() throws IOException {
@@ -709,158 +698,174 @@
// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
// }
- @Test
- public void testUrl_utmaCookies_2() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=351784794"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_2"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_2"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D133697892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
- + "__utmz%3D156030500.1281430767.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+// @Test
+// public void testUrl_utmaCookies_2() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=351784794"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_2"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_2"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D133697892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
+// + "__utmz%3D156030500.1281430767.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
- @Test
- public void testUrl_utmaCookies_utmb_utmc_1() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=351789994"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D131297892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
- + "__utmb%3D1%3B%2B"
- + "__utmc%3D1%3B%2B"
- + "__utmz%3D156030500.1281430767.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+// @Test
+// public void testUrl_utmaCookies_utmb_utmc_1() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=351789994"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D131297892.1285760711.1281430767.1281430867.1281430967.2%3B%2B"
+// + "__utmb%3D1%3B%2B"
+// + "__utmc%3D1%3B%2B"
+// + "__utmz%3D156030500.1281430767.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
/**
* this test should create a request from the same eclipse instance later in
* time (visit count increased, visit timestamps updated, userId identical)
*/
- @Test
- public void testUrl_utmaCookies_utmb_utmc_1B() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=35176694"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D131297892.1285760711.1281430767.1281430967.1281430988.3%3B%2B"
- + "__utmb%3D1%3B%2B"
- + "__utmc%3D1%3B%2B"
- + "__utmz%3D156030500.1281430767.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+// @Test
+// public void testUrl_utmaCookies_utmb_utmc_1B() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=35176694"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D131297892.1285760711.1281430767.1281430967.1281430988.3%3B%2B"
+// + "__utmb%3D1%3B%2B"
+// + "__utmc%3D1%3B%2B"
+// + "__utmz%3D156030500.1281430767.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
/**
* this test should create a request from the same eclipse instance later in
* time (visit count increased, visit timestamps updated, userId identical)
*/
- @Test
- public void testUrl_debug_utma() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=15176694"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
- + "__utmb%3D1%3B%2B"
- + "__utmc%3D1%3B%2B"
- + "__utmz%3D156030500.1281430767.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
- method.request(url);
- assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
- }
+// @Test
+// public void testUrl_debug_utma() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=15176694"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
+// + "__utmb%3D1%3B%2B"
+// + "__utmc%3D1%3B%2B"
+// + "__utmz%3D156030500.1281430767.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
+// @Test
+// public void testUrl_utma_utmz() throws IOException {
+// TestHttpGetMethod method = new TestHttpGetMethod();
+// String url = "http://www.google-analytics.com/__utm.gif?"
+// + "utmwv=4.7.2"
+// + "&utmn=15176694"
+// + "&utmhn=jboss.org"
+// + "&utmcs=UTF-8"
+// + "&utmsr=1920x1080"
+// + "&utmsc=24-bit"
+// + "&utmul=en-us"
+// + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
+// + "&utmhid=1087431432"
+// + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
+// + "&utmac=UA-17645367-1"
+// + "&utmcc="
+// + "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
+// + "__utmb%3D1%3B%2B"
+// + "__utmc%3D1%3B%2B"
+// + "__utmz%3D999.1282924103925.1.1."
+// + "utmcsr%3D(direct)%7C"
+// + "utmccn%3D(direct)%7C"
+// + "utmcmd%3D(none)%7C"
+// + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
+// + "&gaq=1";
+// method.request(url);
+// assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+// }
+
@Test
- public void testUrl_utma_utmz() throws IOException {
- String userAgent = "com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)";
- TestHttpGetMethod method = new TestHttpGetMethod(userAgent, loggingAdapter);
- String url = "http://www.google-analytics.com/__utm.gif?"
- + "utmwv=4.7.2"
- + "&utmn=15176694"
- + "&utmhn=jboss.org"
- + "&utmcs=UTF-8"
- + "&utmsr=1920x1080"
- + "&utmsc=24-bit"
- + "&utmul=en-us"
- + "&utmdt=tools-usage-testUrl_utmaCookies_utmb_utmc_1"
- + "&utmhid=1087431432"
- + "&utmp=%2Ftools%2Fusage%2FtestUrl_utmaCookies_utmb_utmc_1"
- + "&utmac=UA-17645367-1"
- + "&utmcc="
- + "__utma%3D999.5737734690471263281282924103927.1282924103925.1282924103925.1282924103925.1%3B%2B"
- + "__utmb%3D1%3B%2B"
- + "__utmc%3D1%3B%2B"
- + "__utmz%3D999.1282924103925.1.1."
- + "utmcsr%3D(direct)%7C"
- + "utmccn%3D(direct)%7C"
- + "utmcmd%3D(none)%7C"
- + "utmctr%3Dtest1%7Ctest2%7Ctest3%7Ctest4%7Ctest5%7Ctest6%7Ctest7%7Ctest8%7Ctest8%7Ctest9%7Ctest10%7Ctest11%7Ctest12%7Ctest13%7Ctest514%7Ctest14%7Ctest15%7Ctest16%7Ctest17%7Ctest18%7Ctest19%7Ctest20%7Ctest20%7Ctest21%7Ctest22%7Ctest23%7Ctest514%7Ctest24%7Ctest25%7Ctest26%7Ctest27%7Ctest28%7Ctest29%7Ctest30%7Ctest31%3B"
- + "&gaq=1";
+ 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());
}
@@ -869,6 +874,10 @@
private HttpURLConnection urlConnection;
+ public TestHttpGetMethod() {
+ super("com.jboss.jbds.product/3.0.1 (Windows; U; Windows NT 6.1; en-US)", new SystemOutLogger());
+ }
+
public TestHttpGetMethod(String userAgent, ILoggingAdapter loggingAdapter) {
super(userAgent, loggingAdapter);
}
15 years, 7 months
JBoss Tools SVN: r24855 - in trunk/usage: plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-09-10 05:05:36 -0400 (Fri, 10 Sep 2010)
New Revision: 24855
Modified:
trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/UsageReport.java
trunk/usage/tests/org.jboss.tools.usage.test/build.properties
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java
Log:
[JBIDE-7041] reporting bundle version as referrer now
Modified: trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF 2010-09-10 09:05:36 UTC (rev 24855)
@@ -7,6 +7,7 @@
Export-Package: org.jboss.tools.usage,
org.jboss.tools.usage.googleanalytics,
org.jboss.tools.usage.googleanalytics.eclipse,
+ org.jboss.tools.usage.internal;x-friends:="org.jboss.tools.usage.test",
org.jboss.tools.usage.preferences;x-friends:="org.jboss.tools.usage.test",
org.jboss.tools.usage.reporting;x-friends:="org.jboss.tools.usage.test",
org.jboss.tools.usage.util
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/AbstractGoogleAnalyticsParameters.java 2010-09-10 09:05:36 UTC (rev 24855)
@@ -17,13 +17,11 @@
public abstract class AbstractGoogleAnalyticsParameters implements IGoogleAnalyticsParameters {
private String accountName;
- private String referral;
private String hostName;
- public AbstractGoogleAnalyticsParameters(String accountName, String hostName, String referral) {
+ public AbstractGoogleAnalyticsParameters(String accountName, String hostName) {
this.accountName = accountName;
this.hostName = hostName;
- this.referral = referral;
}
public String getAccountName() {
@@ -33,8 +31,4 @@
public String getHostname() {
return hostName;
}
-
- public String getReferral() {
- return referral;
- }
}
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/eclipse/AbstractEclipseEnvironment.java 2010-09-10 09:05:36 UTC (rev 24855)
@@ -40,8 +40,8 @@
private long visitCount;
private IUserAgent eclipseUserAgent;
- public AbstractEclipseEnvironment(String accountName, String hostName, String referral, IEclipsePreferences preferences) {
- super(accountName, hostName, referral);
+ public AbstractEclipseEnvironment(String accountName, String hostName, IEclipsePreferences preferences) {
+ super(accountName, hostName);
this.random = new Random();
this.preferences = preferences;
eclipseUserAgent = createEclipseUserAgent();
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java 2010-09-10 09:05:36 UTC (rev 24855)
@@ -10,14 +10,13 @@
******************************************************************************/
package org.jboss.tools.usage.internal;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* @author Andre Dietisheim
*/
-public class JBossToolsUsageActivator extends AbstractUIPlugin {
+public class JBossToolsUsageActivator extends Plugin {
public static final String PLUGIN_ID = "org.jboss.tools.usage"; //$NON-NLS-1$
@@ -36,10 +35,6 @@
public static JBossToolsUsageActivator getDefault() {
return plugin;
}
-
- public static ImageDescriptor getImageDescriptor(String path) {
- return imageDescriptorFromPlugin(PLUGIN_ID, path);
- }
public void start(BundleContext context) throws Exception {
super.start(context);
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/ReportingEclipseEnvironment.java 2010-09-10 09:05:36 UTC (rev 24855)
@@ -25,8 +25,8 @@
private static final String JBOSS_TOOLS_BUNDLES_PREFIX = "org\\.jboss\\.tools.+"; //$NON-NLS-1$
private static final char BUNDLE_GROUP_DELIMITER = '-';
- public ReportingEclipseEnvironment(String accountName, String hostName, String referral, IEclipsePreferences preferences) {
- super(accountName, hostName, referral, preferences);
+ public ReportingEclipseEnvironment(String accountName, String hostName, IEclipsePreferences preferences) {
+ super(accountName, hostName, preferences);
}
@Override
@@ -54,4 +54,12 @@
}
return builder.toString();
}
+
+ public String getReferral() {
+ return getBundleVersion();
+ }
+
+ private String getBundleVersion() {
+ return JBossToolsUsageActivator.getDefault().getBundle().getVersion().toString();
+ }
}
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/UsageReport.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/UsageReport.java 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/reporting/UsageReport.java 2010-09-10 09:05:36 UTC (rev 24855)
@@ -87,7 +87,6 @@
IGoogleAnalyticsParameters eclipseEnvironment = new ReportingEclipseEnvironment(
GANALYTICS_ACCOUNTNAME
, HOST_NAME
- , IGoogleAnalyticsParameters.VALUE_NO_REFERRAL
, PreferencesUtils.getPreferences());
ILoggingAdapter loggingAdapter = new PluginLogger(JBossToolsUsageActivator.getDefault());
IURLBuildingStrategy urlStrategy = new GoogleAnalyticsUrlStrategy(eclipseEnvironment);
Modified: trunk/usage/tests/org.jboss.tools.usage.test/build.properties
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/build.properties 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/tests/org.jboss.tools.usage.test/build.properties 2010-09-10 09:05:36 UTC (rev 24855)
@@ -15,4 +15,8 @@
META-INF/,\
about.html,\
build.properties,\
- src/
+ src/,\
+ GlobalUsageReportingSettingsTest.launch,\
+ JBossToolsUsageIntegrationTest.launch,\
+ UsageTestSuite.launch,\
+ pom.xml
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GoogleAnalyticsUrlStrategyTest.java 2010-09-10 09:05:36 UTC (rev 24855)
@@ -18,6 +18,7 @@
import org.jboss.tools.usage.FocusPoint;
import org.jboss.tools.usage.googleanalytics.GoogleAnalyticsUrlStrategy;
import org.jboss.tools.usage.googleanalytics.IGoogleAnalyticsParameters;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
import org.junit.Before;
import org.junit.Test;
@@ -47,7 +48,8 @@
+ "&utmul=en-us"
+ "&utmdt=testing-strategy"
+ "&utmhid=1087431432"
- + "&utmr=0"
+ + "&utmr="
+ + JBossToolsUsageActivator.getDefault().getBundle().getVersion()
+ "&utmp=%2Ftesting%2Fstrategy"
+ "&utmfl="
+ ReportingEclipseEnvironmentFake.JAVA_VERSION
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java 2010-09-10 08:45:49 UTC (rev 24854)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/ReportingEclipseEnvironmentFake.java 2010-09-10 09:05:36 UTC (rev 24855)
@@ -21,26 +21,25 @@
public static final String GANALYTICS_ACCOUNTNAME = "UA-17645367-1";
public static final String HOSTNAME = "jboss.org";
- public static final String REFERRAL = "0";
public static final String JAVA_VERSION = "1.6.0_20";
private String javaVersion;
public ReportingEclipseEnvironmentFake() {
- this(GANALYTICS_ACCOUNTNAME, HOSTNAME, REFERRAL, JAVA_VERSION, new EclipsePreferencesFake());
+ this(GANALYTICS_ACCOUNTNAME, HOSTNAME, JAVA_VERSION, new EclipsePreferencesFake());
}
public ReportingEclipseEnvironmentFake(IEclipsePreferences preferences) {
- this(GANALYTICS_ACCOUNTNAME, HOSTNAME, REFERRAL, JAVA_VERSION, preferences);
+ this(GANALYTICS_ACCOUNTNAME, HOSTNAME, JAVA_VERSION, preferences);
}
- public ReportingEclipseEnvironmentFake(String accountName, String hostName, String referral) {
- this(accountName, hostName, referral, JAVA_VERSION, new EclipsePreferencesFake());
+ public ReportingEclipseEnvironmentFake(String accountName, String hostName) {
+ this(accountName, hostName, JAVA_VERSION, new EclipsePreferencesFake());
}
- public ReportingEclipseEnvironmentFake(String accountName, String hostName, String referral, String javaVersion,
+ public ReportingEclipseEnvironmentFake(String accountName, String hostName, String javaVersion,
IEclipsePreferences preferences) {
- super(accountName, hostName, referral, preferences);
+ super(accountName, hostName, preferences);
this.javaVersion = javaVersion;
}
15 years, 7 months
JBoss Tools SVN: r24854 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-09-10 04:45:49 -0400 (Fri, 10 Sep 2010)
New Revision: 24854
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java
Log:
https://jira.jboss.org/browse/JBIDE-6810
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java 2010-09-10 08:45:10 UTC (rev 24853)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java 2010-09-10 08:45:49 UTC (rev 24854)
@@ -22,6 +22,12 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider;
+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties;
+import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetProjectCreationDataModelProperties.FacetDataModelMap;
+import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.jboss.tools.common.model.XModelConstants;
import org.jboss.tools.common.model.filesystems.FileSystemsHelper;
@@ -54,6 +60,28 @@
return JSFNature.NATURE_ID;
}
+ protected void configFacets(IDataModel dataModel, String projectLocation) {
+ super.configFacets(dataModel, projectLocation);
+
+ FacetDataModelMap map = (FacetDataModelMap) dataModel.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
+ IDataModel configJSF = (IDataModel) map.get("jst.jsf"); //$NON-NLS-1$
+ if(configJSF == null) {
+ configJSF = DataModelFactory.createDataModel(new JSFFacetInstallDataModelProvider());
+ map.add(configJSF);
+ }
+ configJSF = (IDataModel) map.get("jst.jsf"); //$NON-NLS-1$
+ if(configJSF != null) {
+ String template = getProperty(TEMPLATE_VERSION_ID);
+ String version = template.indexOf("1.1") >= 0 ? "1.1"
+ : template.indexOf("1.2") >= 0 ? "1.2"
+ : template.indexOf("2.0") >= 0 ? "2.0"
+ : null;
+ if(version != null) {
+ configJSF.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, version);
+ }
+ }
+
+ }
protected IWebProjectTemplate createTemplate() {
return new JSFTemplate();
}
15 years, 7 months
JBoss Tools SVN: r24853 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-09-10 04:45:10 -0400 (Fri, 10 Sep 2010)
New Revision: 24853
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
Log:
https://jira.jboss.org/browse/JBIDE-6810
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2010-09-10 08:41:50 UTC (rev 24852)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java 2010-09-10 08:45:10 UTC (rev 24853)
@@ -385,17 +385,9 @@
projectLocation = createLinks(projectLocation);
}
- String webroot = getProperty(WEB_CONTENT_LOCATION_ID);
- String[] javaRoot = (String[])getPropertyObject(JAVA_SOURCES_LOCATION_ID);
- String sv = getProperty(SERVLET_VERSION_ID);
-
WebFacetProjectCreationDataModelProvider modelProvider = new WebFacetProjectCreationDataModelProvider();
IDataModel dataModel = DataModelFactory.createDataModel(modelProvider);
- FacetDataModelMap map = (FacetDataModelMap) dataModel.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
- IDataModel configDM = (IDataModel) map.get("jst.web"); //$NON-NLS-1$
- IDataModel configJavaDM = (IDataModel) map.get("java"); //$NON-NLS-1$
-
boolean hasJSTWebFacet = false;
if(exists) {
IFacetedProject fp0 = ProjectFacetsManager.create(getProject());
@@ -411,31 +403,8 @@
}
}
- if(sv != null && (sv.indexOf("2.3") >= 0 || sv.indexOf("2.4") >= 0 || sv.indexOf("2.5") >= 0 || sv.indexOf("3.0") >= 0)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- configDM.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, sv);
- }
- if(configJavaDM != null && sv != null && sv.indexOf("3.0") >= 0) { //$NON-NLS-1$
- configJavaDM.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, "1.6"); //$NON-NLS-1$
- }
-
- if(webroot != null) {
- int i = webroot.lastIndexOf("/"); //$NON-NLS-1$
- String webRootName = webroot.substring(i + 1);
- if(webroot.startsWith(projectLocation.replace('\\', '/') + "/")) { //$NON-NLS-1$
- webRootName = webroot.substring(projectLocation.length() + 1);
- }
- configDM.setProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER, webRootName);
- }
- if(javaRoot != null && javaRoot.length > 0 && javaRoot[0].length() > 0) {
- String jr = javaRoot[0].replace('\\', '/');
- int i = jr.lastIndexOf("/"); //$NON-NLS-1$
- String javaRootName = javaRoot[0].substring(i + 1);
- if(jr.startsWith(projectLocation.replace('\\', '/') + "/")) { //$NON-NLS-1$
- javaRootName = jr.substring(projectLocation.length() + 1);
- }
- configDM.setProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER, javaRootName);
- }
-
+ configFacets(dataModel, projectLocation);
+
modelProvider.setDataModel(dataModel);
FacetProjectCreationOperation wcco = (FacetProjectCreationOperation)modelProvider.getDefaultOperation();
@@ -470,6 +439,42 @@
return null;
}
}
+
+ protected void configFacets(IDataModel dataModel, String projectLocation) {
+ String webroot = getProperty(WEB_CONTENT_LOCATION_ID);
+ String[] javaRoot = (String[])getPropertyObject(JAVA_SOURCES_LOCATION_ID);
+ String sv = getProperty(SERVLET_VERSION_ID);
+
+ FacetDataModelMap map = (FacetDataModelMap) dataModel.getProperty(IFacetProjectCreationDataModelProperties.FACET_DM_MAP);
+ IDataModel configDM = (IDataModel) map.get("jst.web"); //$NON-NLS-1$
+ IDataModel configJavaDM = (IDataModel) map.get("java"); //$NON-NLS-1$
+
+ if(sv != null && (sv.indexOf("2.3") >= 0 || sv.indexOf("2.4") >= 0 || sv.indexOf("2.5") >= 0 || sv.indexOf("3.0") >= 0)) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ configDM.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, sv);
+ }
+ if(configJavaDM != null && sv != null && sv.indexOf("3.0") >= 0) { //$NON-NLS-1$
+ configJavaDM.setProperty(IFacetDataModelProperties.FACET_VERSION_STR, "1.6"); //$NON-NLS-1$
+ }
+
+ if(webroot != null) {
+ int i = webroot.lastIndexOf("/"); //$NON-NLS-1$
+ String webRootName = webroot.substring(i + 1);
+ if(webroot.startsWith(projectLocation.replace('\\', '/') + "/")) { //$NON-NLS-1$
+ webRootName = webroot.substring(projectLocation.length() + 1);
+ }
+ configDM.setProperty(IJ2EEModuleFacetInstallDataModelProperties.CONFIG_FOLDER, webRootName);
+ }
+ if(javaRoot != null && javaRoot.length > 0 && javaRoot[0].length() > 0) {
+ String jr = javaRoot[0].replace('\\', '/');
+ int i = jr.lastIndexOf("/"); //$NON-NLS-1$
+ String javaRootName = javaRoot[0].substring(i + 1);
+ if(jr.startsWith(projectLocation.replace('\\', '/') + "/")) { //$NON-NLS-1$
+ javaRootName = jr.substring(projectLocation.length() + 1);
+ }
+ configDM.setProperty(IWebFacetInstallDataModelProperties.SOURCE_FOLDER, javaRootName);
+ }
+
+ }
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=119066
private void createWTPNature2(AbstractOperation wcco, IProgressMonitor monitor) {
15 years, 7 months