[jboss-cvs] JBossCache/tests/functional/org/jboss/cache ...

Brian Stansberry brian.stansberry at jboss.com
Wed May 23 15:23:10 EDT 2007


  User: bstansberry
  Date: 07/05/23 15:23:10

  Modified:    tests/functional/org/jboss/cache  LifeCycleTest.java
  Log:
  Rename LifecycleState to CacheStatus
  
  Revision  Changes    Path
  1.10      +8 -8      JBossCache/tests/functional/org/jboss/cache/LifeCycleTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: LifeCycleTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/LifeCycleTest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- LifeCycleTest.java	23 May 2007 00:51:40 -0000	1.9
  +++ LifeCycleTest.java	23 May 2007 19:23:10 -0000	1.10
  @@ -16,7 +16,7 @@
    * Tests restart (stop-destroy-create-start) of CacheImpl
    *
    * @author Bela Ban
  - * @version $Id: LifeCycleTest.java,v 1.9 2007/05/23 00:51:40 bstansberry Exp $
  + * @version $Id: LifeCycleTest.java,v 1.10 2007/05/23 19:23:10 bstansberry Exp $
    */
   public class LifeCycleTest extends TestCase
   {
  @@ -129,11 +129,11 @@
      public void testFailedStart() throws Exception
      {
         CacheImpl cache = createCache(Configuration.CacheMode.LOCAL);
  -      assertEquals("Correct state", LifecycleState.INSTANTIATED, cache.getLifecycleState());
  +      assertEquals("Correct state", CacheStatus.INSTANTIATED, cache.getCacheStatus());
         DisruptLifecycleListener listener = new DisruptLifecycleListener();
         cache.addCacheListener(listener);
         cache.create();
  -      assertEquals("Correct state", LifecycleState.CREATED, cache.getLifecycleState());
  +      assertEquals("Correct state", CacheStatus.CREATED, cache.getCacheStatus());
         try
         {
            cache.start();
  @@ -141,13 +141,13 @@
         }
         catch (IllegalStateException good) {}
         
  -      assertEquals("Correct state", LifecycleState.FAILED, cache.getLifecycleState());
  +      assertEquals("Correct state", CacheStatus.FAILED, cache.getCacheStatus());
         
         cache.removeCacheListener(listener);
         
         cache.start();
         
  -      assertEquals("Correct state", LifecycleState.STARTED, cache.getLifecycleState());
  +      assertEquals("Correct state", CacheStatus.STARTED, cache.getCacheStatus());
         
         cache.put("/a/b/c", null);
         assertTrue(cache.getNumberOfNodes() > 0);
  @@ -162,14 +162,14 @@
         }
         catch (IllegalStateException good) {}
         
  -      assertEquals("Correct state", LifecycleState.FAILED, cache.getLifecycleState());
  +      assertEquals("Correct state", CacheStatus.FAILED, cache.getCacheStatus());
         
         cache.removeCacheListener(listener);
         
         cache.stop();
  -      assertEquals("Correct state", LifecycleState.STOPPED, cache.getLifecycleState());
  +      assertEquals("Correct state", CacheStatus.STOPPED, cache.getCacheStatus());
         cache.destroy();
  -      assertEquals("Correct state", LifecycleState.DESTROYED, cache.getLifecycleState());
  +      assertEquals("Correct state", CacheStatus.DESTROYED, cache.getCacheStatus());
      }
   
      CacheImpl createCache(Configuration.CacheMode cache_mode) throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list