[jbosscache-commits] JBoss Cache SVN: r6777 - core/branches/2.2.X/src/test/java/org/jboss/cache/profiling.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Tue Sep 23 07:00:17 EDT 2008


Author: manik.surtani at jboss.com
Date: 2008-09-23 07:00:16 -0400 (Tue, 23 Sep 2008)
New Revision: 6777

Modified:
   core/branches/2.2.X/src/test/java/org/jboss/cache/profiling/MockAsyncReplTest.java
Log:
Fixed broken test 

Modified: core/branches/2.2.X/src/test/java/org/jboss/cache/profiling/MockAsyncReplTest.java
===================================================================
--- core/branches/2.2.X/src/test/java/org/jboss/cache/profiling/MockAsyncReplTest.java	2008-09-22 17:35:46 UTC (rev 6776)
+++ core/branches/2.2.X/src/test/java/org/jboss/cache/profiling/MockAsyncReplTest.java	2008-09-23 11:00:16 UTC (rev 6777)
@@ -56,27 +56,28 @@
    {
       AtomicInteger ai = new AtomicInteger();
       Marshaller m;
-      Marshaller2 m2;
+     // Marshaller2 m2;
 
       @Override
       public RspList invokeRemoteCommands(Vector<Address> dests, ReplicableCommand command, int mode, long timeout,
                                           boolean anycasting, boolean oob, RspFilter filter) throws NotSerializableException
       {
          // make sure we do the marshalling though
-         if (m == null && m2 == null)
+         if (m == null)// && m2 == null)
          {
             m = getRequestMarshaller();
-            if (m instanceof Marshaller2)
+      /*      if (m instanceof Marshaller2)
             {
                m2 = (Marshaller2) m;
                m = null;
-            }
+            }*/
          }
 
          try
          {
-            if (m2 == null) m.objectToByteBuffer(command);
-            else m2.objectToBuffer(command);
+            //if (m2 == null)
+ 		 m.objectToByteBuffer(command);
+            //else m2.objectToBuffer(command);
          }
          catch (Exception e)
          {




More information about the jbosscache-commits mailing list