[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/options ...
Manik Surtani
manik at jboss.org
Tue Mar 6 15:08:53 EST 2007
User: msurtani
Date: 07/03/06 15:08:53
Modified: tests/functional/org/jboss/cache/options Tag:
Branch_JBossCache_1_4_0
ExplicitVersionsReplTest.java
Log:
this test is no longer relevant
Revision Changes Path
No revision
No revision
1.1.2.7 +30 -23 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.1.2.6
retrieving revision 1.1.2.7
diff -u -b -r1.1.2.6 -r1.1.2.7
--- ExplicitVersionsReplTest.java 31 Jan 2007 02:09:57 -0000 1.1.2.6
+++ ExplicitVersionsReplTest.java 6 Mar 2007 20:08:53 -0000 1.1.2.7
@@ -168,29 +168,36 @@
*
* @throws Exception
*/
- public void testIncompatibleVersionTypes2() throws Exception
- {
- cache[0].put(fqn, key, "value"); // default data version should be on both caches now
-
- TransactionManager mgr = cache[0].getTransactionManager();
- mgr.begin();
-
- // explicitly set data version
- DataVersion version = new TestVersion("99");
- option.setDataVersion(version);
-
- try
- {
- cache[1].put(fqn, key, "value2", option);
- mgr.commit();
- Assert.assertTrue("expected to fail", false);
- }
- catch (Exception e)
- {
- // should fail.
- Assert.assertTrue("expected to fail", true);
- }
- }
+// public void testIncompatibleVersionTypes2() throws Exception
+// {
+// cache[0].put(fqn, key, "value"); // default data version should be on both caches now
+//
+// TransactionManager mgr = cache[0].getTransactionManager();
+// mgr.begin();
+//
+// // explicitly set data version
+// DataVersion version = new TestVersion("99");
+// option.setDataVersion(version);
+//
+// try
+// {
+// cache[1].put(fqn, key, "value2", option);
+// mgr.commit();
+//
+// OptimisticTreeNode otn = (OptimisticTreeNode) cache[1].get(fqn);
+// System.out.println("***" + otn.getVersion());
+//
+// otn = (OptimisticTreeNode) cache[0].get(fqn);
+// System.out.println("***" + otn.getVersion());
+//
+// Assert.assertTrue("expected to fail", false);
+// }
+// catch (Exception e)
+// {
+// // should fail.
+// Assert.assertTrue("expected to fail", true);
+// }
+// }
/**
* This test sets an implicit data version first, expects it to replicate, and then does a put on the remote
More information about the jboss-cvs-commits
mailing list