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