1 22 package org.jboss.cache.multiplexer; 23 24 import org.jboss.cache.Cache; 25 26 32 public class BuddyGroupAssignmentTest 33 extends org.jboss.cache.buddyreplication.BuddyGroupAssignmentTest 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 muxHelper.tearDown(); 54 muxHelper = null; 55 } 56 } 57 58 @Override 59 protected void configureMultiplexer(Cache cache) throws Exception 60 { 61 muxHelper.configureCacheForMux(cache); 62 } 63 64 @Override 65 protected void validateMultiplexer(Cache cache) 66 { 67 assertTrue("Cache is using multiplexer", cache.getConfiguration().isUsingMultiplexer()); 68 } 69 70 } 71 | Popular Tags |