[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/buddyreplication ...
Manik Surtani
msurtani at jboss.com
Fri Aug 25 10:10:10 EDT 2006
User: msurtani
Date: 06/08/25 10:10:10
Modified: tests/functional/org/jboss/cache/buddyreplication
BuddyManagerTest.java
Log:
More work on JBCACHE-734
Revision Changes Path
1.5 +15 -16 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.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- BuddyManagerTest.java 6 Jun 2006 10:17:15 -0000 1.4
+++ BuddyManagerTest.java 25 Aug 2006 14:10:10 -0000 1.5
@@ -10,9 +10,8 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.marshall.MethodCallFactory;
import org.jboss.cache.marshall.MethodDeclarations;
-import org.jboss.cache.marshall.JBCMethodCall;
import org.jboss.cache.xml.XmlHelper;
-import org.jgroups.blocks.MethodCall;
+import org.jboss.cache.marshall.MethodCall;
import org.w3c.dom.Element;
import java.util.ArrayList;
@@ -114,13 +113,13 @@
{
Fqn fqn1 = Fqn.fromString("/hello/world");
- JBCMethodCall call1 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn1, "key", "value"});
- JBCMethodCall call2 = MethodCallFactory.create(MethodDeclarations.replicateMethod, new Object[]{call1});
+ MethodCall call1 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn1, "key", "value"});
+ MethodCall call2 = MethodCallFactory.create(MethodDeclarations.replicateMethod, new Object[]{call1});
BuddyManager bm = createBasicBuddyManager();
- JBCMethodCall newReplicatedCall = bm.transformFqns(call2);
- JBCMethodCall newPutCall = (JBCMethodCall) newReplicatedCall.getArgs()[0];
+ MethodCall newReplicatedCall = bm.transformFqns(call2);
+ MethodCall newPutCall = (MethodCall) newReplicatedCall.getArgs()[0];
// should use object refs to transform the original MethodCall.
String expected = "/" + BuddyManager.BUDDY_BACKUP_SUBTREE + "/" + null + "/hello/world";
@@ -132,13 +131,13 @@
{
Fqn fqn1 = Fqn.ROOT;
- JBCMethodCall call1 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn1, "key", "value"});
- JBCMethodCall call2 = MethodCallFactory.create(MethodDeclarations.replicateMethod, new Object[]{call1});
+ MethodCall call1 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn1, "key", "value"});
+ MethodCall call2 = MethodCallFactory.create(MethodDeclarations.replicateMethod, new Object[]{call1});
BuddyManager bm = createBasicBuddyManager();
- JBCMethodCall newReplicatedCall = bm.transformFqns(call2);
- JBCMethodCall newPutCall = (JBCMethodCall) newReplicatedCall.getArgs()[0];
+ MethodCall newReplicatedCall = bm.transformFqns(call2);
+ MethodCall newPutCall = (MethodCall) newReplicatedCall.getArgs()[0];
// should use object refs to transform the original MethodCall.
String expected = "/" + BuddyManager.BUDDY_BACKUP_SUBTREE + "/" + null;
@@ -152,21 +151,21 @@
Fqn fqn3 = Fqn.fromString("/hello/again");
Fqn fqn4 = Fqn.fromString("/buddy/replication");
- JBCMethodCall call1 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn1, "key", "value"});
- JBCMethodCall call2 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn2, "key", "value"});
- JBCMethodCall call3 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn3, "key", "value"});
- JBCMethodCall call4 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn4, "key", "value"});
+ MethodCall call1 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn1, "key", "value"});
+ MethodCall call2 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn2, "key", "value"});
+ MethodCall call3 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn3, "key", "value"});
+ MethodCall call4 = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn4, "key", "value"});
List list = new ArrayList();
list.add(call1);
list.add(call2);
list.add(call3);
list.add(call4);
- JBCMethodCall call5 = MethodCallFactory.create(MethodDeclarations.replicateAllMethod, new Object[]{list});
+ MethodCall call5 = MethodCallFactory.create(MethodDeclarations.replicateAllMethod, new Object[]{list});
BuddyManager bm = createBasicBuddyManager();
- JBCMethodCall newReplicatedCall = bm.transformFqns(call5);
+ MethodCall newReplicatedCall = bm.transformFqns(call5);
List l = (List) newReplicatedCall.getArgs()[0];
// should use object refs to transform the original MethodCall.
More information about the jboss-cvs-commits
mailing list