[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/jmx ...
Brian Stansberry
brian.stansberry at jboss.com
Wed May 23 15:23:34 EDT 2007
User: bstansberry
Date: 07/05/23 15:23:34
Modified: tests/functional/org/jboss/cache/jmx
CacheJmxWrapperTest.java
Log:
Rename LifecycleState to CacheStatus
Revision Changes Path
1.7 +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.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- CacheJmxWrapperTest.java 23 May 2007 10:28:53 -0000 1.6
+++ CacheJmxWrapperTest.java 23 May 2007 19:23:34 -0000 1.7
@@ -4,7 +4,7 @@
import org.jboss.cache.Cache;
import org.jboss.cache.CacheSPI;
import org.jboss.cache.Fqn;
-import org.jboss.cache.LifecycleState;
+import org.jboss.cache.CacheStatus;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.config.Configuration.CacheMode;
import org.jboss.cache.misc.TestingUtil;
@@ -296,11 +296,11 @@
{
CacheJmxWrapper wrapper = new CacheJmxWrapper(createCache(createConfiguration()));
registerWrapper(wrapper);
- assertEquals("Correct state", LifecycleState.INSTANTIATED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.INSTANTIATED, wrapper.getCacheStatus());
DisruptLifecycleListener listener = new DisruptLifecycleListener();
wrapper.getCache().addCacheListener(listener);
wrapper.create();
- assertEquals("Correct state", LifecycleState.CREATED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.CREATED, wrapper.getCacheStatus());
try
{
wrapper.start();
@@ -310,13 +310,13 @@
{
}
- assertEquals("Correct state", LifecycleState.FAILED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.FAILED, wrapper.getCacheStatus());
wrapper.getCache().removeCacheListener(listener);
wrapper.start();
- assertEquals("Correct state", LifecycleState.STARTED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.STARTED, wrapper.getCacheStatus());
wrapper.getCache().put(Fqn.fromString("/a/b/c"), null);
assertTrue(wrapper.getNumberOfNodes() > 0);
@@ -333,14 +333,14 @@
{
}
- assertEquals("Correct state", LifecycleState.FAILED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.FAILED, wrapper.getCacheStatus());
wrapper.getCache().removeCacheListener(listener);
wrapper.stop();
- assertEquals("Correct state", LifecycleState.STOPPED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.STOPPED, wrapper.getCacheStatus());
wrapper.destroy();
- assertEquals("Correct state", LifecycleState.DESTROYED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.DESTROYED, wrapper.getCacheStatus());
}
private String getCacheDetailsTest(boolean html) throws Exception
More information about the jboss-cvs-commits
mailing list