Author: manik.surtani(a)jboss.com
Date: 2008-04-07 08:46:11 -0400 (Mon, 07 Apr 2008)
New Revision: 5508
Modified:
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java
Log:
Updated tests
Modified:
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java
===================================================================
---
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java 2008-04-07
11:27:27 UTC (rev 5507)
+++
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/ComponentRegistryFunctionalTest.java 2008-04-07
12:46:11 UTC (rev 5508)
@@ -165,6 +165,9 @@
brc.setBuddyLocatorConfig(blc);
configuration.setBuddyReplicationConfig(brc);
+ // Cache mode should NOT be local for a buddy manager to be constructed
+ configuration.setCacheMode(Configuration.CacheMode.REPL_ASYNC);
+
BuddyManager bm = cr.getOrCreateComponent(null, componentToTest);
assert bm != null;
Modified:
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java
===================================================================
---
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java 2008-04-07
11:27:27 UTC (rev 5507)
+++
core/branches/2.1.X/src/test/java/org/jboss/cache/factories/LateConfigurationTest.java 2008-04-07
12:46:11 UTC (rev 5508)
@@ -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()