Author: manik.surtani(a)jboss.com
Date: 2008-04-07 08:55:22 -0400 (Mon, 07 Apr 2008)
New Revision: 5511
Modified:
core/trunk/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java
core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java
Log:
Fixed tests
Modified:
core/trunk/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java 2008-04-07
12:52:32 UTC (rev 5510)
+++
core/trunk/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java 2008-04-07
12:55:22 UTC (rev 5511)
@@ -165,6 +165,8 @@
brc.setBuddyLocatorConfig(blc);
configuration.setBuddyReplicationConfig(brc);
+ // needs to be a non-LOCAL configuration
+ configuration.setCacheMode(Configuration.CacheMode.REPL_ASYNC);
BuddyManager bm = cr.getOrCreateComponent(null, componentToTest);
assert bm != null;
Modified: core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java 2008-04-07
12:52:32 UTC (rev 5510)
+++
core/trunk/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java 2008-04-07
12:55:22 UTC (rev 5511)
@@ -90,8 +90,7 @@
c.getConfiguration().setBuddyReplicationConfig(brc);
c.start();
- assert c.getBuddyManager() != null;
- assert !c.getBuddyManager().isEnabled();
+ assert c.getBuddyManager() == null;
}
public void testBuddyManager()
Show replies by date