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