[jbosscache-commits] JBoss Cache SVN: r5677 - core/trunk/src/test/java/org/jboss/cache/marshall.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Thu Apr 24 12:21:30 EDT 2008
Author: manik.surtani at jboss.com
Date: 2008-04-24 12:21:30 -0400 (Thu, 24 Apr 2008)
New Revision: 5677
Modified:
core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java
core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java
Log:
Fixed test
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java 2008-04-24 16:17:05 UTC (rev 5676)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshaller210Test.java 2008-04-24 16:21:30 UTC (rev 5677)
@@ -29,8 +29,8 @@
Map map = createMap(size);
Fqn fqn = Fqn.fromString("/my/stuff");
String key = "key";
- PutKeyValueCommand putCommand = commandsFactory.buildPutKeyValueCommand(null, fqn, key, map, false, false);
- ReplicateCommand replicateCommand = commandsFactory.buildReplicateCommand(putCommand);
+ PutKeyValueCommand putCommand = new PutKeyValueCommand(null, fqn, key, map, false, false);
+ ReplicateCommand replicateCommand = new ReplicateCommand(putCommand);
byte[] buf = marshaller.objectToByteBuffer(replicateCommand);
Modified: core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java 2008-04-24 16:17:05 UTC (rev 5676)
+++ core/trunk/src/test/java/org/jboss/cache/marshall/CacheMarshallerTestBase.java 2008-04-24 16:21:30 UTC (rev 5677)
@@ -9,7 +9,6 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.RegionManager;
import org.jboss.cache.commands.CacheCommand;
-import org.jboss.cache.commands.CommandsFactory;
import org.jboss.cache.commands.cachedata.PutKeyValueCommand;
import org.jboss.cache.commands.functional.MarshallableCommand;
import org.jboss.cache.commands.remote.ReplicateCommand;
@@ -33,7 +32,6 @@
protected VersionAwareMarshaller marshaller;
protected RegionManager regionManager;
protected Configuration c;
- protected CommandsFactory commandsFactory = new CommandsFactory();
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
More information about the jbosscache-commits
mailing list