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

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


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

  Modified:    tests/functional/org/jboss/cache/buddyreplication  Tag:
                        Branch_JBossCache_1_4_0
                        BuddyReplicationTestsBase.java
  Log:
  Add hook for validating whether mux is used
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.26.2.3  +16 -1     JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyReplicationTestsBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BuddyReplicationTestsBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyReplicationTestsBase.java,v
  retrieving revision 1.26.2.2
  retrieving revision 1.26.2.3
  diff -u -b -r1.26.2.2 -r1.26.2.3
  --- BuddyReplicationTestsBase.java	3 Nov 2006 19:16:23 -0000	1.26.2.2
  +++ BuddyReplicationTestsBase.java	4 Nov 2006 04:15:14 -0000	1.26.2.3
  @@ -80,7 +80,12 @@
         configureMultiplexer(c);
         
         if (start)
  +      {
            c.startService();
  +         
  +         validateMultiplexer(c);
  +      }
  +      
         return c;
      }
      
  @@ -96,7 +101,17 @@
         // 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 TreeCache[] createCaches(int numCaches, boolean useBuddyPool) throws Exception
      {
  
  
  



More information about the jboss-cvs-commits mailing list