[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/pojo/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/pojo/jmx
PojoCacheJmxWrapperTest.java
Log:
Rename LifecycleState to CacheStatus
Revision Changes Path
1.5 +8 -8 JBossCache/tests/functional/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapperTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PojoCacheJmxWrapperTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapperTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- PojoCacheJmxWrapperTest.java 23 May 2007 10:28:54 -0000 1.4
+++ PojoCacheJmxWrapperTest.java 23 May 2007 19:23:34 -0000 1.5
@@ -9,7 +9,7 @@
import org.jboss.cache.AbstractCacheListener;
import org.jboss.cache.CacheSPI;
-import org.jboss.cache.LifecycleState;
+import org.jboss.cache.CacheStatus;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.pojo.PojoCache;
import org.jboss.cache.pojo.PojoCacheException;
@@ -148,11 +148,11 @@
{
PojoCacheJmxWrapper wrapper = new PojoCacheJmxWrapper(createCache(createConfiguration()));
registerWrapper(wrapper);
- assertEquals("Correct state", LifecycleState.INSTANTIATED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.INSTANTIATED, wrapper.getCacheStatus());
DisruptLifecycleListener listener = new DisruptLifecycleListener();
wrapper.getPojoCache().getCache().addCacheListener(listener);
wrapper.create();
- assertEquals("Correct state", LifecycleState.CREATED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.CREATED, wrapper.getCacheStatus());
try
{
wrapper.start();
@@ -162,13 +162,13 @@
{
}
- assertEquals("Correct state", LifecycleState.FAILED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.FAILED, wrapper.getCacheStatus());
wrapper.getPojoCache().getCache().removeCacheListener(listener);
wrapper.start();
- assertEquals("Correct state", LifecycleState.STARTED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.STARTED, wrapper.getCacheStatus());
wrapper.getPojoCache().attach("/a/b/c", null);
@@ -183,14 +183,14 @@
{
}
- assertEquals("Correct state", LifecycleState.FAILED, wrapper.getLifecycleState());
+ assertEquals("Correct state", CacheStatus.FAILED, wrapper.getCacheStatus());
wrapper.getPojoCache().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());
}
More information about the jboss-cvs-commits
mailing list