[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/buddyreplication ...
Brian Stansberry
brian.stansberry at jboss.com
Sat Nov 4 17:03:24 EST 2006
User: bstansberry
Date: 06/11/04 17:03:24
Modified: tests/functional/org/jboss/cache/buddyreplication
BuddyReplicationConfigTest.java
BuddyManagerTest.java
NextMemberBuddyLocatorTest.java
Log:
Make NextMemberBuddyLocator.Config a top level class
Revision Changes Path
1.11 +2 -3 JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyReplicationConfigTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BuddyReplicationConfigTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyReplicationConfigTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- BuddyReplicationConfigTest.java 25 Oct 2006 04:50:21 -0000 1.10
+++ BuddyReplicationConfigTest.java 4 Nov 2006 22:03:24 -0000 1.11
@@ -8,7 +8,6 @@
import junit.framework.TestCase;
import org.jboss.cache.TreeCache;
-import org.jboss.cache.buddyreplication.NextMemberBuddyLocator.Config;
import org.jboss.cache.config.BuddyReplicationConfig;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.factories.XmlConfigurationParser;
@@ -55,7 +54,7 @@
assertTrue(mgr.isEnabled());
assertNull(mgr.getBuddyPoolName());
assertEquals(NextMemberBuddyLocator.class, mgr.buddyLocator.getClass());
- NextMemberBuddyLocator.Config blc = (Config) mgr.buddyLocator.getConfig();
+ NextMemberBuddyLocatorConfig blc = (NextMemberBuddyLocatorConfig) mgr.buddyLocator.getConfig();
assertEquals(1, blc.getNumBuddies());
assertTrue(blc.isIgnoreColocatedBuddies());
}
@@ -70,7 +69,7 @@
assertTrue(bm.isEnabled());
assertTrue(bm.buddyLocator instanceof NextMemberBuddyLocator);
NextMemberBuddyLocator bl = (NextMemberBuddyLocator) bm.buddyLocator;
- NextMemberBuddyLocator.Config blc = (Config) bl.getConfig();
+ NextMemberBuddyLocatorConfig blc = (NextMemberBuddyLocatorConfig) bl.getConfig();
assertTrue(blc.isIgnoreColocatedBuddies());
assertEquals(1, blc.getNumBuddies());
assertEquals("myBuddyPoolReplicationGroup", bm.getConfig().getBuddyPoolName());
1.9 +3 -4 JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyManagerTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BuddyManagerTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyManagerTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- BuddyManagerTest.java 25 Oct 2006 04:50:21 -0000 1.8
+++ BuddyManagerTest.java 4 Nov 2006 22:03:24 -0000 1.9
@@ -8,7 +8,6 @@
import junit.framework.TestCase;
import org.jboss.cache.Fqn;
-import org.jboss.cache.buddyreplication.NextMemberBuddyLocator.Config;
import org.jboss.cache.config.BuddyReplicationConfig;
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.marshall.MethodCall;
@@ -44,7 +43,7 @@
assertTrue(mgr.isEnabled());
assertEquals("groupOne", mgr.getBuddyPoolName());
assertEquals(NextMemberBuddyLocator.class, mgr.buddyLocator.getClass());
- NextMemberBuddyLocator.Config blc = (Config) mgr.buddyLocator.getConfig();
+ NextMemberBuddyLocatorConfig blc = (NextMemberBuddyLocatorConfig) mgr.buddyLocator.getConfig();
assertEquals(3, blc.getNumBuddies());
assertTrue(blc.isIgnoreColocatedBuddies());
}
@@ -69,7 +68,7 @@
assertEquals(NextMemberBuddyLocator.class, mgr.buddyLocator.getClass());
// since the properties are not passed on to the next member buddy locator - they were obviously meant for a different impl.
- NextMemberBuddyLocator.Config blc = (Config) mgr.buddyLocator.getConfig();
+ NextMemberBuddyLocatorConfig blc = (NextMemberBuddyLocatorConfig) mgr.buddyLocator.getConfig();
assertEquals(1, blc.getNumBuddies());
assertTrue(blc.isIgnoreColocatedBuddies());
}
@@ -106,7 +105,7 @@
assertTrue(mgr.isEnabled());
assertNull(mgr.getBuddyPoolName());
assertEquals(NextMemberBuddyLocator.class, mgr.buddyLocator.getClass());
- NextMemberBuddyLocator.Config blc = (Config) mgr.buddyLocator.getConfig();
+ NextMemberBuddyLocatorConfig blc = (NextMemberBuddyLocatorConfig) mgr.buddyLocator.getConfig();
assertEquals(1, blc.getNumBuddies());
assertTrue(blc.isIgnoreColocatedBuddies());
}
1.4 +1 -1 JBossCache/tests/functional/org/jboss/cache/buddyreplication/NextMemberBuddyLocatorTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NextMemberBuddyLocatorTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/NextMemberBuddyLocatorTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- NextMemberBuddyLocatorTest.java 23 Oct 2006 05:47:30 -0000 1.3
+++ NextMemberBuddyLocatorTest.java 4 Nov 2006 22:03:24 -0000 1.4
@@ -72,7 +72,7 @@
private List getBuddies(int numBuddies, boolean ignoreColoc, List candidates, Map buddyPool)
{
- NextMemberBuddyLocator.Config cfg = new NextMemberBuddyLocator.Config();
+ NextMemberBuddyLocatorConfig cfg = new NextMemberBuddyLocatorConfig();
cfg.setIgnoreColocatedBuddies(ignoreColoc);
cfg.setNumBuddies(numBuddies);
NextMemberBuddyLocator nmbl = new NextMemberBuddyLocator();
More information about the jboss-cvs-commits
mailing list