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

Brian Stansberry brian.stansberry at jboss.com
Fri Nov 3 23:31:02 EST 2006


  User: bstansberry
  Date: 06/11/03 23:31:02

  Added:       tests/functional/org/jboss/cache/multiplexer   Tag:
                        Branch_JBossCache_1_4_0
                        BuddyReplicationFailoverTest.java
                        BuddyGroupAssignmentTest.java
  Log:
  Add more tests of multiplexer use with BR
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +41 -0     JBossCache/tests/functional/org/jboss/cache/multiplexer/Attic/BuddyReplicationFailoverTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BuddyReplicationFailoverTest.java
  ===================================================================
  RCS file: BuddyReplicationFailoverTest.java
  diff -N BuddyReplicationFailoverTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BuddyReplicationFailoverTest.java	4 Nov 2006 04:31:02 -0000	1.1.2.1
  @@ -0,0 +1,41 @@
  +package org.jboss.cache.multiplexer;
  +
  +import org.jboss.cache.TreeCacheMBean;
  +
  +public class BuddyReplicationFailoverTest 
  +   extends org.jboss.cache.buddyreplication.BuddyReplicationFailoverTest
  +{
  +   private MultiplexerTestHelper muxHelper;
  +   
  +   protected void setUp() throws Exception
  +   {
  +      muxHelper = new MultiplexerTestHelper();
  +      
  +      super.setUp();
  +   }
  +
  +   protected void tearDown() throws Exception
  +   {
  +      try
  +      {
  +         super.tearDown();
  +      }
  +      finally
  +      {
  +         if (muxHelper != null)
  +            muxHelper.tearDown();
  +         muxHelper = null;
  +      }
  +   }
  +
  +   protected void configureMultiplexer(TreeCacheMBean cache) throws Exception
  +   {
  +      muxHelper.configureCacheForMux(cache);
  +   }
  +   
  +   protected void validateMultiplexer(TreeCacheMBean cache)
  +   {
  +      assertTrue("Cache is using multiplexer", cache.isUsingMultiplexer());
  +   }
  +   
  +}
  
  
  
  1.1.2.1   +41 -0     JBossCache/tests/functional/org/jboss/cache/multiplexer/Attic/BuddyGroupAssignmentTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BuddyGroupAssignmentTest.java
  ===================================================================
  RCS file: BuddyGroupAssignmentTest.java
  diff -N BuddyGroupAssignmentTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ BuddyGroupAssignmentTest.java	4 Nov 2006 04:31:02 -0000	1.1.2.1
  @@ -0,0 +1,41 @@
  +package org.jboss.cache.multiplexer;
  +
  +import org.jboss.cache.TreeCacheMBean;
  +
  +public class BuddyGroupAssignmentTest 
  +   extends org.jboss.cache.buddyreplication.BuddyGroupAssignmentTest
  +{
  +   private MultiplexerTestHelper muxHelper;
  +   
  +   protected void setUp() throws Exception
  +   {
  +      muxHelper = new MultiplexerTestHelper();
  +      
  +      super.setUp();
  +   }
  +
  +   protected void tearDown() throws Exception
  +   {
  +      try
  +      {
  +         super.tearDown();
  +      }
  +      finally
  +      {
  +         if (muxHelper != null)
  +            muxHelper.tearDown();
  +         muxHelper = null;
  +      }
  +   }
  +
  +   protected void configureMultiplexer(TreeCacheMBean cache) throws Exception
  +   {
  +      muxHelper.configureCacheForMux(cache);
  +   }
  +   
  +   protected void validateMultiplexer(TreeCacheMBean cache)
  +   {
  +      assertTrue("Cache is using multiplexer", cache.isUsingMultiplexer());
  +   }
  +   
  +}
  
  
  



More information about the jboss-cvs-commits mailing list