Author: manik.surtani(a)jboss.com
Date: 2008-01-11 09:32:29 -0500 (Fri, 11 Jan 2008)
New Revision: 5117
Modified:
core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java
Log:
Added buddy replication cfg to test
Modified: core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java 2008-01-11
14:07:10 UTC (rev 5116)
+++
core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java 2008-01-11
14:32:29 UTC (rev 5117)
@@ -3,6 +3,7 @@
import org.jboss.cache.CacheSPI;
import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
+import org.jboss.cache.config.BuddyReplicationConfig;
import org.jboss.cache.config.CacheLoaderConfig;
import org.jboss.cache.interceptors.OptimisticLockingInterceptor;
import org.jboss.cache.loader.DummyInMemoryCacheLoader;
@@ -78,6 +79,19 @@
assert c.getCacheLoaderManager().getCacheLoader() instanceof
DummyInMemoryCacheLoader;
}
+ public void testBuddyManager()
+ {
+ assert c.getBuddyManager() == null;
+
+ BuddyReplicationConfig brc = new BuddyReplicationConfig();
+ brc.setEnabled(true);
+ c.getConfiguration().setBuddyReplicationConfig(brc);
+
+ c.start();
+ assert c.getBuddyManager() != null;
+ assert c.getBuddyManager().isEnabled();
+ }
+
public void testInterceptors()
{
assert TestingUtil.findInterceptor(c, OptimisticLockingInterceptor.class) == null;
Show replies by date