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

Brian Stansberry brian.stansberry at jboss.com
Fri Nov 3 23:18:30 EST 2006


  User: bstansberry
  Date: 06/11/03 23:18:30

  Added:       tests/functional/org/jboss/cache/multiplexer   Tag:
                        Branch_JBossCache_1_4_0 AsyncReplTest.java
                        SyncReplTxTest.java
  Log:
  Test replication with multiplexer
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +46 -0     JBossCache/tests/functional/org/jboss/cache/multiplexer/Attic/AsyncReplTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AsyncReplTest.java
  ===================================================================
  RCS file: AsyncReplTest.java
  diff -N AsyncReplTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ AsyncReplTest.java	4 Nov 2006 04:18:30 -0000	1.1.2.1
  @@ -0,0 +1,46 @@
  +package org.jboss.cache.multiplexer;
  +
  +import org.jboss.cache.TreeCacheMBean;
  +
  +public class AsyncReplTest extends org.jboss.cache.replicated.AsyncReplTest
  +{
  +   private MultiplexerTestHelper muxHelper;
  +
  +   public AsyncReplTest(String name) {
  +      super(name);
  +   }
  +   
  +   public void setUp() throws Exception
  +   {
  +      muxHelper = new MultiplexerTestHelper();
  +      
  +      super.setUp();
  +   }
  +
  +   public 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   +46 -0     JBossCache/tests/functional/org/jboss/cache/multiplexer/Attic/SyncReplTxTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SyncReplTxTest.java
  ===================================================================
  RCS file: SyncReplTxTest.java
  diff -N SyncReplTxTest.java
  --- /dev/null	1 Jan 1970 00:00:00 -0000
  +++ SyncReplTxTest.java	4 Nov 2006 04:18:30 -0000	1.1.2.1
  @@ -0,0 +1,46 @@
  +package org.jboss.cache.multiplexer;
  +
  +import org.jboss.cache.TreeCacheMBean;
  +
  +public class SyncReplTxTest extends org.jboss.cache.replicated.SyncReplTxTest
  +{
  +   private MultiplexerTestHelper muxHelper;
  +
  +   public SyncReplTxTest(String name) {
  +      super(name);
  +   }
  +   
  +   public void setUp() throws Exception
  +   {
  +      muxHelper = new MultiplexerTestHelper();
  +      
  +      super.setUp();
  +   }
  +
  +   public 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