Author: adietish
Date: 2010-08-27 07:49:55 -0400 (Fri, 27 Aug 2010)
New Revision: 24491
Added:
trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java
Log:
[JBIDE-6880] test successfull
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java
===================================================================
---
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java 2010-08-27
11:29:48 UTC (rev 24490)
+++
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java 2010-08-27
11:49:55 UTC (rev 24491)
@@ -25,9 +25,9 @@
private static final String REPORTING_ENABLEMENT_URL =
"http://community.jboss.org/wiki/JBossToolsJBossDeveloperStudioUsageReportingEnablement";
//$NON-NLS-1$
- private static final String KEY_REPORT_ENABLEMENT = "Usage Reporting is ";
- private static final String KEY_DUMMY_VALUE = "Dummy Value is ";
- private static final String KEY_INTEGER_VALUE = "Integer Value is ";
+ public static final String KEY_REPORT_ENABLEMENT = "Usage Reporting is ";
+ public static final String KEY_DUMMY_VALUE = "Dummy Value is ";
+ public static final String KEY_INTEGER_VALUE = "Integer Value is ";
private static final char VALUE_DELIMITER = '<';
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java
===================================================================
---
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java 2010-08-27
11:29:48 UTC (rev 24490)
+++
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java 2010-08-27
11:49:55 UTC (rev 24491)
@@ -18,8 +18,8 @@
*/
public class ReadUntilAlternativesImpl extends ReadUntilImpl {
- private char[][] alternativesCharSequences;
- private char[] alternativeCharacter;
+ private char[][] allAlternatives;
+ private char[] currentAlternative;
private int alternativesIndex = -1;
public ReadUntilAlternativesImpl(Reader reader, String... stringAlternatives) {
@@ -28,24 +28,16 @@
}
private void initAlternativesCharSequences(String... stringAlternatives) {
- this.alternativesCharSequences = new char[stringAlternatives.length][];
+ this.allAlternatives = new char[stringAlternatives.length][];
for (int i = 0; i < stringAlternatives.length; i++) {
- this.alternativesCharSequences[i] = stringAlternatives[i].toCharArray();
+ this.allAlternatives[i] = stringAlternatives[i].toCharArray();
}
}
- protected boolean doContinueRead(char character, int numberOfCharactersRead) throws
IOException {
- boolean continueRead = super.doContinueRead(character, numberOfCharactersRead);
- if (!isMatching()) {
- setMatchingIndex(0);
- }
- return continueRead;
- }
-
@Override
protected int getNumberOfCharactersToMatch() {
- if (alternativeCharacter != null) {
- return alternativeCharacter.length;
+ if (currentAlternative != null) {
+ return currentAlternative.length;
} else {
return 0;
}
@@ -53,44 +45,71 @@
@Override
protected boolean doesMatch(char character) {
- if (alternativeCharacter == null || alternativeCharacter[getMatchingIndex()] !=
character) {
- return matchAlternative(character);
+ if (currentAlternative == null || currentAlternative[getMatchingIndex()] != character)
{
+ // current alternative does not match new character, select a new
+ // alternative
+ boolean newAlternativeSelected = matchAlternative(character);
+ if (!newAlternativeSelected) {
+ // no alternative matches current character + new one
+ setMatchingIndex(0);
+ }
+ return newAlternativeSelected;
} else {
return true;
}
}
+ /**
+ * Returns whether the given character matches an alternative (in other
+ * words the given character matches an alternative at the current matching
+ * index).
+ *
+ * @param character
+ * the character
+ * @return true, if successful
+ */
private boolean matchAlternative(char character) {
- for (int i = alternativesIndex + 1; i < alternativesCharSequences.length; i++) {
- char[] alternative = alternativesCharSequences[i];
+ for (int i = alternativesIndex + 1; i < allAlternatives.length; i++) {
+ char[] alternative = allAlternatives[i];
if (doesMatch(character, alternative)) {
- this.alternativeCharacter = alternative;
+ this.currentAlternative = alternative;
this.alternativesIndex = i;
return true;
}
}
+ this.currentAlternative = null;
this.alternativesIndex = -1;
return false;
}
- private boolean doesMatch(char character, char[] alternative) {
- for (int j = 0; j <= getMatchingIndex(); j++) {
- if (alternative[j] != character) {
+ /**
+ * Returns whether the given potentially matching alternative (String)
+ * matches the currently selected alternative and the additional character.
+ *
+ * @param character
+ * @param potentiallyMatchingAlternative
+ * the new alternative that could match
+ * @return
+ */
+ private boolean doesMatch(char character, char[] potentiallyMatchingAlternative) {
+ int currentMatchingIndex = getMatchingIndex();
+ for (int j = 0; j < currentMatchingIndex; j++) {
+ if (potentiallyMatchingAlternative[j] != currentAlternative[j]) {
return false;
}
}
- return true;
+ return potentiallyMatchingAlternative[currentMatchingIndex] == character;
}
@Override
protected char[] getCharactersToMatch() {
- return alternativeCharacter;
+ return currentAlternative;
}
public String getAlternative() {
if (alternativesIndex >= 0) {
- return new String(alternativesCharSequences[alternativesIndex]);
+ return new String(allAlternatives[alternativesIndex]);
} else {
return null;
}
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java
===================================================================
---
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java 2010-08-27
11:29:48 UTC (rev 24490)
+++
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java 2010-08-27
11:49:55 UTC (rev 24491)
@@ -53,7 +53,7 @@
setMatches(matches);
return continueRead;
}
-
+
public boolean isMatching() {
return matched;
}
Added:
trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch
(rev 0)
+++
trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch 2010-08-27
11:49:55 UTC (rev 24491)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application"
value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation"
value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location"
value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry
value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER"
value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR"
value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME"
value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND"
value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER"
value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.jboss.tools.usage.test.GlobalUsageReportingSettingsTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl
${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product"
value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins"
value="org.eclipse.swt@default:default,org.eclipse.core.filesystem@default:default,org.eclipse.core.resources@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.help.base@default:default,org.eclipse.core.databinding.property@default:default,com.springsource.org.apache.commons.logging@default:default,org.mortbay.jetty.util@default:default,org.eclipse.core.filesystem.macosx@default:false,org.eclipse.equinox.p2.jarprocessor@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.ui.navigator@default:default,org.eclipse.core.runtime@default:true,org.eclipse.ecf@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.core.jobs@default:default,org.apache.jasper@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.help.ui@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.core.databinding@default:default,com.springsource.javax.!
el@default:default,org.eclipse.equinox.p2.artifact.repository@default:default,org.eclipse.osgi@-1:true,org.eclipse.ui.ide@default:default,org.eclipse.ui.navigator.resources@default:default,org.eclipse.equinox.preferences@default:default,org.apache.lucene@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.equinox.security@default:default,org.eclipse.text@default:default,org.eclipse.core.variables@default:default,org.jboss.tools.xulrunner.initializer@default:false,org.eclipse.ui.ide.application@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.equinox.app@default:default,org.eclipse.osgi.services@default:default,org.junit4@default:default,org.apache.lucene.analysis@default:default,org.eclipse.equinox.security.macosx@default:false,org.eclipse.core.resources.compatibility@default:false,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.expressions@default:default,org.ec!
lipse.equinox.http.jetty@default:default,org.eclipse.jface@def!
ault:def
ault,org.eclipse.equinox.common@2:true,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.swt.cocoa.macosx@default:false,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.ecf.filetransfer@default:default,org.eclipse.core.databinding.observable@default:default,com.springsource.javax.servlet.jsp@default:default,org.eclipse.compare.core@default:default,org.eclipse.ui.intro@default:default,org.eclipse.jface.text@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,javax.servlet@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.core.commands@default:default,org.apache.commons.el@default:default,org.mortbay.jetty.server@default:default,org.eclipse.ui.views@default:default,com.ibm.icu@default:default,com.jboss.jbds.product@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.eclipse.ui.cocoa@default:false,org.eclipse.ant.core@default!
:default,org.eclipse.ui.intro.universal@default:default,org.apache.ant@default:default,org.eclipse.equinox.transforms.hook@default:false,org.hamcrest.core@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.help@default:default,com.springsource.javax.servlet@default:default,org.eclipse.core.net@default:default,org.eclipse.equinox.registry@default:default,javax.transaction@default:false,org.eclipse.equinox.p2.repository@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui@default:default,org.eclipse.ui.cheatsheets@default:default"/>
+<stringAttribute key="selected_workspace_plugins"
value="org.jboss.tools.usage.test@default:default,org.jboss.tools.usage@default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>
Property changes on:
trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java
===================================================================
---
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java 2010-08-27
11:29:48 UTC (rev 24490)
+++
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java 2010-08-27
11:49:55 UTC (rev 24491)
@@ -47,14 +47,12 @@
assertFalse(reportEnablement.isEnabled());
}
- @Ignore
@Test
public void canExtractStringValue() throws IOException {
GlobalReportingSettingsFake reportSettings = new
GlobalReportingSettingsFake("", "dummy", "");
assertEquals("dummy", reportSettings.getStringValue());
}
- @Ignore
@Test
public void canExtractIntegerValue() throws IOException {
GlobalReportingSettingsFake reportSettings = new
GlobalReportingSettingsFake("", "", "42");
@@ -83,91 +81,123 @@
}
private String getEnablementPageContent(String enablementValue, String dummyValue,
String integerValue) {
- return "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\""
- + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
"
- + " "
- + " "
- + "<html
xmlns=\"http://www.w3.org/1999/xhtml\"
xml:lang=\"en\" lang=\"en\"> "
- + "<head> "
- + " <title> JBoss Tools / JBoss Developer Studio Usage Reporting
Enablement - JBoss Community</title> "
- + " "
- + " <meta http-equiv=\"X-UA-Compatible\"
content=\"IE=EmulateIE7\" /> "
- + " "
- + " <script type=\"text/javascript\"> "
- + " var javascriptIsCool = false;"
- + " </script> "
- + " "
- + "</head> "
- + "<body class=\"jive-body-content jive-body-content-document\"
> "
- + " <div id=\"jive-body\"> "
- + " "
- + "<div class=\"jive-content\"> "
- + " <div class=\"jive-content-header\"> "
- + " <div class=\"jive-wiki-post-moderating
jive-content-header-moderating\"> "
- + " <span class=\"jive-icon-med
jive-icon-moderation\"></span>Currently Being Moderated"
- + " </div> "
- + " <div class=\"jive-content-title\"> "
- + " <h2><span class=\"jive-icon-big
jive-icon-document\"></span> JBoss Tools / JBoss Developer Studio Usage
Reporting Enablement</h2> "
- + " </div> "
- + " <div class=\"jive-content-header-version\"> "
- + " VERSION 5 "
- + " <a
href=\"/wiki/JBossToolsJBossDeveloperStudioUsageReportingEnablement/diff?secondVersionNumber=5\"
title=\"Click to view article history\"><img class=\"jive-icon-sml
jive-icon-search\" src=\"/4.0.5/images/transparent.png\" alt=\"Click
to view article history\" /></a> "
- + " </div> "
- + " <div class=\"jive-content-header-details\"> "
- + " "
- + "Created on: Aug 24, 2010 5:39 AM by"
- + "<a href=\"/people/adietish\""
- + "id=\"jive-72036899,987,346,482,238\""
- +
"onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
- + "onmouseout=\"quickuserprofile.cancelTooltip();\""
- + "class=\"jiveTT-hover-user jive-username-link\""
- + ">Andre Dietisheim</a> <span>-</span> "
- + "Last Modified: "
- + "Aug 24, 2010 5:53 AM"
- + "by <a href=\"/people/adietish\""
- + "id=\"jive-72036899,987,347,353,238\""
- +
"onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
- + "onmouseout=\"quickuserprofile.cancelTooltip();\""
- + "class=\"jiveTT-hover-user jive-username-link\""
- + ">Andre Dietisheim</a> </div> "
- + " "
- + " </div> "
- + " <div class=\"jive-content-body\"> "
- + " "
- + "<!-- [DocumentBodyStart:e26c60c0-cb73-47b7-bded-f4eb7320305b]
--><div class=\"jive-rendered-content\"><p>This article is
queried by the JBoss Tools / JBoss Developer Studio usage reporting plugin. It implements
a global kill-switch that allows us to disable usage reporting stats. The plugin looks for
a string of the format:</p><p style=\"min-height: 8pt; height: 8pt; padding:
0px;\"> </p><p><strong>Usage 
Reporting  is <"
- + "ENABLED></strong>. Any value that differs from ENABLED is
interpreted as DISABLED.</p><p style=\"min-height: 8pt; height: 8pt;
padding: 0px;\"> </p><h1>Usage Reporting is "
- + enablementValue
-
- + "</h1>"
- + "<h1>Dummy value is "
-
- + dummyValue
-
- + "</h1>"
-
- + "<h1>Integer value is "
-
- + integerValue
-
- + "</h1>"
-
- + "</div><!-- [DocumentBodyEnd:e26c60c0-cb73-47b7-bded-f4eb7320305b]
--> "
- + " "
- + " </div> "
- + " <div class=\"jive-content-footer\"> "
- + " "
- + " "
- + " <!-- BEGIN content details --> "
- + " <span class=\"jive-content-footer-item\"> "
- + " 18 Views</a> "
- + " </span> "
- + " "
- + " "
- + " </div> "
- + "</div> "
- + "</body> "
- + "</html> ";
+ return
+// "Dummy Value would be cool but here follows the Boolean Value for the Report
Enablement: "
+// + "<h1>" + GlobalUsageReportingSettings.KEY_REPORT_ENABLEMENT
+// + enablementValue
+// + "</h1>"
+//
+// + "The Dummy Value in this Resource is set to "
+// + "<h1>" + GlobalUsageReportingSettings.KEY_DUMMY_VALUE
+// + dummyValue
+// + "</h1>"
+//
+// + "Boolean Usage Reporting is set to:"
+// + "<h1>" + GlobalUsageReportingSettings.KEY_REPORT_ENABLEMENT
+// + enablementValue
+// + "</h1>"
+//
+// + "And the value of type Integer is "
+// + "<h1>" + GlobalUsageReportingSettings.KEY_INTEGER_VALUE
+// + integerValue
+// + "</h1>"
+// + " is the Value that is a String";
+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\""
+ + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
"
+ + " "
+ + " "
+ +
+ "<html
xmlns=\"http://www.w3.org/1999/xhtml\"
xml:lang=\"en\" lang=\"en\"> "
+ + "<head> "
+ +
+ " <title> JBoss Tools / JBoss Developer Studio Usage Reporting
Enablement - JBoss Community</title> "
+ + " "
+ +
+ " <meta http-equiv=\"X-UA-Compatible\"
content=\"IE=EmulateIE7\" /> "
+ + " "
+ + " <script type=\"text/javascript\"> "
+ + " var javascriptIsCool = false;"
+ + " </script> "
+ + " "
+ + "</head> "
+ + "<body class=\"jive-body-content jive-body-content-document\" >
"
+ + " <div id=\"jive-body\"> "
+ + " "
+ + "<div class=\"jive-content\"> "
+ + " <div class=\"jive-content-header\"> "
+ +
+ " <div class=\"jive-wiki-post-moderating
jive-content-header-moderating\"> "
+ +
+ " <span class=\"jive-icon-med
jive-icon-moderation\"></span>Currently Being Moderated"
+ + " </div> "
+ + " <div class=\"jive-content-title\"> "
+ +
+ " <h2><span class=\"jive-icon-big
jive-icon-document\"></span> JBoss Tools / JBoss Developer Studio Usage
Reporting Enablement</h2> "
+ + " </div> "
+ + " <div class=\"jive-content-header-version\"> "
+ + " VERSION 5 "
+ +
+ " <a
href=\"/wiki/JBossToolsJBossDeveloperStudioUsageReportingEnablement/diff?secondVersionNumber=5\"
title=\"Click to view article history\"><img class=\"jive-icon-sml
jive-icon-search\" src=\"/4.0.5/images/transparent.png\" alt=\"Click
to view article history\" /></a> "
+ + " </div> "
+ + " <div class=\"jive-content-header-details\"> "
+ + " "
+ + "Created on: Aug 24, 2010 5:39 AM by"
+ + "<a href=\"/people/adietish\""
+ + "id=\"jive-72036899,987,346,482,238\""
+ +
"onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
+ + "onmouseout=\"quickuserprofile.cancelTooltip();\""
+ + "class=\"jiveTT-hover-user jive-username-link\""
+ + ">Andre Dietisheim</a> <span>-</span> "
+ + "Last Modified: "
+ + "Aug 24, 2010 5:53 AM"
+ + "by <a href=\"/people/adietish\""
+ + "id=\"jive-72036899,987,347,353,238\""
+ +
"onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
+ + "onmouseout=\"quickuserprofile.cancelTooltip();\""
+ + "class=\"jiveTT-hover-user jive-username-link\""
+ + ">Andre Dietisheim</a> </div> "
+ + " "
+ + " </div> "
+ + " <div class=\"jive-content-body\"> "
+ + " "
+ +
+ "<!-- [DocumentBodyStart:e26c60c0-cb73-47b7-bded-f4eb7320305b] --><div
class=\"jive-rendered-content\"><p>This article is queried by the JBoss
Tools / JBoss Developer Studio usage reporting plugin. It implements a global kill-switch
that allows us to disable usage reporting stats. The plugin looks for a string of the
format:</p><p style=\"min-height: 8pt; height: 8pt; padding:
0px;\"> </p><p><strong>Usage 
Reporting  is <"
+ +
+ "ENABLED></strong>. Any value that differs from ENABLED is
interpreted as DISABLED.</p><p style=\"min-height: 8pt; height: 8pt;
padding: 0px;\"> </p><h1>Usage Reporting is "
+
+ + enablementValue
+
+ + "</h1>"
+ + "<h1>Dummy Value is "
+
+ + dummyValue
+
+ + "</h1>"
+
+ + "<h1>Integer Value is "
+
+ + integerValue
+
+ + "</h1>"
+
+ +
+ "</div><!-- [DocumentBodyEnd:e26c60c0-cb73-47b7-bded-f4eb7320305b]
--> "
+ + " "
+ + " </div> "
+ + " <div class=\"jive-content-footer\"> "
+ + " "
+ + " "
+ + " <!-- BEGIN content details --> "
+ + " <span class=\"jive-content-footer-item\"> "
+ + " 18 Views</a> "
+ + " </span> "
+ + " "
+ + " "
+ + " </div> "
+ + "</div> "
+ + "</body> "
+ + "</html> ";
}
@Ignore