1 22 package org.jboss.cache.multiplexer; 23 24 import org.jboss.cache.Cache; 25 26 27 33 public class BuddyReplicationFailoverTest 34 extends org.jboss.cache.buddyreplication.BuddyReplicationFailoverTest 35 { 36 private MultiplexerTestHelper muxHelper; 37 38 protected void setUp() throws Exception 39 { 40 muxHelper = new MultiplexerTestHelper(); 41 42 super.setUp(); 43 } 44 45 protected void tearDown() throws Exception 46 { 47 try 48 { 49 super.tearDown(); 50 } 51 finally 52 { 53 if (muxHelper != null) 54 muxHelper.tearDown(); 55 muxHelper = null; 56 } 57 } 58 59 @Override 60 protected void configureMultiplexer(Cache cache) throws Exception 61 { 62 muxHelper.configureCacheForMux(cache); 63 } 64 65 @Override 66 protected void validateMultiplexer(Cache cache) 67 { 68 assertTrue("Cache is using multiplexer", cache.getConfiguration().isUsingMultiplexer()); 69 } 70 71 } 72 | Popular Tags |