[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/multiplexer ...
Brian Stansberry
brian.stansberry at jboss.com
Fri Nov 3 23:19:38 EST 2006
User: bstansberry
Date: 06/11/03 23:19:37
Added: tests/functional/org/jboss/cache/multiplexer Tag:
Branch_JBossCache_1_4_0
BuddyBackupActivationInactivationTest.java
Log:
Test buddy backup activation/inactivation with mux enabled
Revision Changes Path
No revision
No revision
1.1.2.1 +41 -0 JBossCache/tests/functional/org/jboss/cache/multiplexer/Attic/BuddyBackupActivationInactivationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BuddyBackupActivationInactivationTest.java
===================================================================
RCS file: BuddyBackupActivationInactivationTest.java
diff -N BuddyBackupActivationInactivationTest.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ BuddyBackupActivationInactivationTest.java 4 Nov 2006 04:19:37 -0000 1.1.2.1
@@ -0,0 +1,41 @@
+package org.jboss.cache.multiplexer;
+
+import org.jboss.cache.TreeCacheMBean;
+
+public class BuddyBackupActivationInactivationTest
+ extends org.jboss.cache.buddyreplication.BuddyBackupActivationInactivationTest
+{
+ 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