[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/jmx ...
Manik Surtani
manik at jboss.org
Mon Jun 11 08:58:17 EDT 2007
User: msurtani
Date: 07/06/11 08:58:17
Modified: tests/functional/org/jboss/cache/jmx
CacheJmxWrapperTest.java
Log:
Reduce Java5 related ide generated warnings
Revision Changes Path
1.8 +8 -8 JBossCache/tests/functional/org/jboss/cache/jmx/CacheJmxWrapperTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheJmxWrapperTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/jmx/CacheJmxWrapperTest.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- CacheJmxWrapperTest.java 23 May 2007 19:23:34 -0000 1.7
+++ CacheJmxWrapperTest.java 11 Jun 2007 12:58:17 -0000 1.8
@@ -3,8 +3,8 @@
import org.jboss.cache.AbstractCacheListener;
import org.jboss.cache.Cache;
import org.jboss.cache.CacheSPI;
-import org.jboss.cache.Fqn;
import org.jboss.cache.CacheStatus;
+import org.jboss.cache.Fqn;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.config.Configuration.CacheMode;
import org.jboss.cache.misc.TestingUtil;
@@ -356,10 +356,10 @@
String details = html ? wrapper.getCacheDetailsAsHtml() : wrapper.getCacheDetails();
- assertTrue("Details include testing", details.indexOf("testing") > -1);
- assertTrue("Details include jmx", details.indexOf("jmx") > -1);
- assertTrue("Details include foobar", details.indexOf("foobar") > -1);
- assertTrue("Details include barfoo", details.indexOf("barfoo") > -1);
+ assertTrue("Details include testing", details.contains("testing"));
+ assertTrue("Details include jmx", details.contains("jmx"));
+ assertTrue("Details include foobar", details.contains("foobar"));
+ assertTrue("Details include barfoo", details.contains("barfoo"));
return details;
}
@@ -386,8 +386,8 @@
String locks = html ? wrapper.getLockInfoAsHtml() : wrapper.getLockInfo();
- assertTrue("Details include testing", locks.indexOf("testing") > -1);
- assertTrue("Details include jmx", locks.indexOf("jmx") > -1);
+ assertTrue("Details include testing", locks.contains("testing"));
+ assertTrue("Details include jmx", locks.contains("jmx"));
return locks;
}
@@ -406,7 +406,7 @@
private void checkHtml(String html, boolean checkBR)
{
if (checkBR)
- assertTrue("Has <br", html.indexOf("<br") > -1);
+ assertTrue("Has <br", html.contains("<br"));
assertTrue("No tabs", html.indexOf('\t') == -1);
More information about the jboss-cvs-commits
mailing list