[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/options ...
Manik Surtani
msurtani at jboss.com
Thu Jan 18 11:42:14 EST 2007
User: msurtani
Date: 07/01/18 11:42:14
Modified: tests/functional/org/jboss/cache/options
ExplicitVersionsTest.java
ExplicitVersionsReplTest.java
Log:
JBCACHE-940
Revision Changes Path
1.13 +3 -3 JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ExplicitVersionsTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsTest.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- ExplicitVersionsTest.java 18 Jan 2007 16:02:10 -0000 1.12
+++ ExplicitVersionsTest.java 18 Jan 2007 16:42:14 -0000 1.13
@@ -14,7 +14,6 @@
import org.jboss.cache.Node;
import org.jboss.cache.NodeSPI;
import org.jboss.cache.config.Configuration;
-import org.jboss.cache.config.Option;
import org.jboss.cache.optimistic.DataVersion;
import org.jboss.cache.optimistic.DefaultDataVersion;
@@ -27,11 +26,9 @@
*/
public class ExplicitVersionsTest extends TestCase
{
-
private CacheImpl cache;
private Fqn fqn = Fqn.fromString("/a");
private String key = "key";
- private Option option = new Option();
protected void setUp() throws Exception
{
@@ -174,6 +171,9 @@
}
+/**
+ * Note that this uses STRING comparisons!!
+ */
class TestVersion implements DataVersion
{
private String myVersion;
1.9 +1 -1 JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsReplTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ExplicitVersionsReplTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/options/ExplicitVersionsReplTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- ExplicitVersionsReplTest.java 11 Jan 2007 13:49:07 -0000 1.8
+++ ExplicitVersionsReplTest.java 18 Jan 2007 16:42:14 -0000 1.9
@@ -126,7 +126,7 @@
TransactionManager mgr = cache[0].getTransactionManager();
mgr.begin();
- version = new TestVersion("199");
+ version = new TestVersion("999");
cache[1].getInvocationContext().getOptionOverrides().setDataVersion(version);
cache[1].put(fqn, key, "value2");
mgr.commit();
More information about the jboss-cvs-commits
mailing list