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

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


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

  Modified:    tests/functional/org/jboss/cache/buddyreplication  Tag:
                        Branch_JBossCache_1_4_0
                        BuddyReplicationTestsBase.java
  Log:
  Add hooks for testing with multiplexer.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.26.2.2  +18 -0     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.1
  retrieving revision 1.26.2.2
  diff -u -b -r1.26.2.1 -r1.26.2.2
  --- BuddyReplicationTestsBase.java	2 Nov 2006 15:21:35 -0000	1.26.2.1
  +++ BuddyReplicationTestsBase.java	3 Nov 2006 19:16:23 -0000	1.26.2.2
  @@ -10,6 +10,7 @@
   import org.jboss.cache.CacheException;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.TreeCache;
  +import org.jboss.cache.TreeCacheMBean;
   import org.jboss.cache.config.Option;
   import org.jboss.cache.misc.TestingUtil;
   import org.jboss.cache.xml.XmlHelper;
  @@ -75,11 +76,28 @@
         c.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         c.setSyncCommitPhase(true); // helps track down breakages
   
  +      // Call the hook that allows mux integration if that's what the test wants
  +      configureMultiplexer(c);
  +      
         if (start)
            c.startService();
         return c;
      }
   
  +   /**
  +    * Provides a hook for multiplexer integration. This default implementation
  +    * is a no-op; subclasses that test mux integration would override
  +    * to integrate the given cache with a multiplexer.
  +    *
  +    * param cache a cache that has been configured but not yet created.
  +    */
  +   protected void configureMultiplexer(TreeCacheMBean cache) throws Exception
  +   {
  +      // default does nothing
  +   }
  +   
  +   
  +
      protected TreeCache[] createCaches(int numCaches, boolean useBuddyPool) throws Exception
      {
         return createCaches(1, numCaches, useBuddyPool, false);
  
  
  



More information about the jboss-cvs-commits mailing list