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

Brian Stansberry brian.stansberry at jboss.com
Fri Nov 3 23:14:20 EST 2006


  User: bstansberry
  Date: 06/11/03 23:14:20

  Modified:    tests/functional/org/jboss/cache/statetransfer  Tag:
                        Branch_JBossCache_1_4_0 StateTransferTestBase.java
  Log:
  Add hook for validating whether mux is used
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.17.2.2  +15 -2     JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StateTransferTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java,v
  retrieving revision 1.17.2.1
  retrieving revision 1.17.2.2
  diff -u -b -r1.17.2.1 -r1.17.2.2
  --- StateTransferTestBase.java	3 Nov 2006 18:54:48 -0000	1.17.2.1
  +++ StateTransferTestBase.java	4 Nov 2006 04:14:20 -0000	1.17.2.2
  @@ -104,8 +104,7 @@
         
         if (startCache)
         {
  -         tree.createService();
  -         tree.startService();
  +         startCache(tree);
         }
         
         return tree;
  @@ -123,10 +122,24 @@
         // default does nothing
      }
   
  +   /**
  +    * Provides a hook to check that the cache's channel came from the
  +    * multiplexer, or not, as expected.  This default impl asserts that
  +    * the channel did not come from the multiplexer.
  +    * 
  +    * @param cache a cache that has already been started
  +    */
  +   protected void validateMultiplexer(TreeCacheMBean cache)
  +   {
  +      assertFalse("Cache is not using multiplexer", cache.isUsingMultiplexer());
  +   }
  +
      protected void startCache(TreeCacheMBean cache) throws Exception
      {
         cache.createService();
         cache.startService();
  +      
  +      validateMultiplexer(cache);
      }
   
      protected void configureCacheLoader(TreeCacheMBean cache, 
  
  
  



More information about the jboss-cvs-commits mailing list