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