[jbosscache-commits] JBoss Cache SVN: r4967 - core/trunk/src/test/java/org/jboss/cache/marshall.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Thu Jan 3 08:29:35 EST 2008


Author: manik.surtani at jboss.com
Date: 2008-01-03 08:29:35 -0500 (Thu, 03 Jan 2008)
New Revision: 4967

Modified:
   core/trunk/src/test/java/org/jboss/cache/marshall/ReturnValueMarshallingTest.java
Log:
fixed broken unit test

Modified: core/trunk/src/test/java/org/jboss/cache/marshall/ReturnValueMarshallingTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/ReturnValueMarshallingTest.java	2008-01-03 13:20:31 UTC (rev 4966)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/ReturnValueMarshallingTest.java	2008-01-03 13:29:35 UTC (rev 4967)
@@ -85,12 +85,9 @@
       assertSame(listClass, cache2.get(fqn, key).getClass());
 
       // now test if this is the same when obtained using a clustered get mcall
-      MethodCall call = MethodCallFactory.create(MethodDeclarations.replicateMethod,
-            MethodCallFactory.create(MethodDeclarations.clusteredGetMethod,
-                  MethodCallFactory.create(MethodDeclarations.getKeyValueMethodLocal, fqn, key, false),
-                  false
-            )
-      );
+      MethodCall call = MethodCallFactory.create(MethodDeclarations.clusteredGetMethod,
+            MethodCallFactory.create(MethodDeclarations.getKeyValueMethodLocal, fqn, key, false),
+            false);
 
       List responses = cache1.getRPCManager().callRemoteMethods(null, call, true, true, 15000);
       List response1 = (List) responses.get(0);// response from the first (and only) node
@@ -117,11 +114,8 @@
       assertSame(listClass, cache2.get(fqn, key).getClass());
 
       // now test if this is the same when obtained using a data gravitate call
-      MethodCall call = MethodCallFactory.create(MethodDeclarations.replicateMethod,
-            MethodCallFactory.create(MethodDeclarations.dataGravitationMethod,
-                  fqn, false
-            )
-      );
+      MethodCall call = MethodCallFactory.create(MethodDeclarations.dataGravitationMethod,
+            fqn, false);
 
       List responses = cache1.getRPCManager().callRemoteMethods(null, call, true, true, 15000);
       GravitateResult data = (GravitateResult) responses.get(0);// response from the first (and only) node




More information about the jbosscache-commits mailing list