[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/marshall ...
Manik Surtani
msurtani at belmont.prod.atl2.jboss.com
Wed Aug 30 09:40:34 EDT 2006
User: msurtani
Date: 06/08/30 09:40:34
Modified: tests/functional/org/jboss/cache/marshall
BaseTreeCacheMarshallerTest.java
Log:
JBCACHE-755
Revision Changes Path
1.2 +8 -8 JBossCache/tests/functional/org/jboss/cache/marshall/BaseTreeCacheMarshallerTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BaseTreeCacheMarshallerTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/marshall/BaseTreeCacheMarshallerTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- BaseTreeCacheMarshallerTest.java 30 Aug 2006 11:23:55 -0000 1.1
+++ BaseTreeCacheMarshallerTest.java 30 Aug 2006 13:40:34 -0000 1.2
@@ -103,7 +103,7 @@
public void testNonStringBasedFqn() throws Exception
{
- Fqn fqn = new Fqn(new Object[]{new Integer(3), Boolean.FALSE});
+ Fqn fqn = new Fqn(new Object[]{3, Boolean.FALSE});
byte[] asBytes = marshaller.objectToByteBuffer(fqn);
Object o2 = marshaller.objectFromByteBuffer(asBytes);
assertEquals(fqn, o2);
@@ -111,8 +111,8 @@
public void testMethodCall() throws Exception
{
- Fqn fqn = new Fqn(new Object[]{new Integer(3), Boolean.FALSE});
- MethodCall call = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn, "key", "value"});
+ Fqn fqn = new Fqn(new Object[]{3, Boolean.FALSE});
+ MethodCall call = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{null, fqn, "key", "value", Boolean.TRUE});
byte[] asBytes = marshaller.objectToByteBuffer(call);
Object o2 = marshaller.objectFromByteBuffer(asBytes);
@@ -124,8 +124,8 @@
public void testNestedMethodCall() throws Exception
{
- Fqn fqn = new Fqn(new Object[]{new Integer(3), Boolean.FALSE});
- MethodCall call = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{fqn, "key", "value"});
+ Fqn fqn = new Fqn(new Object[]{3, Boolean.FALSE});
+ MethodCall call = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{null, fqn, "key", "value", Boolean.TRUE});
MethodCall replicateCall = MethodCallFactory.create(MethodDeclarations.replicateMethod, new Object[]{call});
byte[] asBytes = marshaller.objectToByteBuffer(replicateCall);
Object o2 = marshaller.objectFromByteBuffer(asBytes);
@@ -199,15 +199,15 @@
// replication queue takes a list of replicate() MethodCalls and wraps them in a single replicate call.
List<MethodCall> calls = new ArrayList<MethodCall>();
- Fqn f = new Fqn(new Object[]{"BlahBlah", new Integer(3), Boolean.FALSE});
+ Fqn f = new Fqn(new Object[]{"BlahBlah", 3, Boolean.FALSE});
String k = "key", v = "value";
- MethodCall actualCall = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{f, k, v});
+ MethodCall actualCall = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{null, f, k, v, Boolean.TRUE});
MethodCall replicateCall = MethodCallFactory.create(MethodDeclarations.replicateMethod, new Object[]{actualCall});
calls.add(replicateCall);
- actualCall = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{f, k, v});
+ actualCall = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal, new Object[]{null, f, k, v, Boolean.TRUE});
replicateCall = MethodCallFactory.create(MethodDeclarations.replicateMethod, new Object[]{actualCall});
calls.add(replicateCall);
More information about the jboss-cvs-commits
mailing list