[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/api ...
Ben Wang
bwang at jboss.com
Sun Sep 3 21:22:17 EDT 2006
User: bwang
Date: 06/09/03 21:22:17
Modified: tests/functional/org/jboss/cache/api SyncReplTest.java
Log:
Failed case for testPutMap
Revision Changes Path
1.3 +7 -2 JBossCache/tests/functional/org/jboss/cache/api/SyncReplTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SyncReplTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/SyncReplTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- SyncReplTest.java 1 Sep 2006 13:59:35 -0000 1.2
+++ SyncReplTest.java 4 Sep 2006 01:22:17 -0000 1.3
@@ -97,18 +97,23 @@
assertInvocationContextInitState();
Fqn fqn = Fqn.fromString("/JSESSIONID/1010.10.5:3000/1234567890/1");
+ Fqn fqn1 = Fqn.fromString("/JSESSIONID/1010.10.5:3000/1234567890/2");
Map map = new HashMap();
map.put("1", "1");
map.put("2", "2");
+ ((CacheSPI)caches[0]).getInvocationContext().getOptionOverrides().setSuppressLocking(true);
caches[0].getRoot().addChild(fqn).put(map);
+ ((CacheSPI)caches[0]).getInvocationContext().getOptionOverrides().setSuppressLocking(true);
assertEquals("Value should be set", "1", caches[0].get(fqn, "1"));
map = new HashMap();
map.put("3", "3");
map.put("4", "4");
- caches[0].getRoot().addChild(fqn).put(map);
- assertEquals("Value should be set", "4", caches[0].get(fqn, "4"));
+ ((CacheSPI)caches[0]).getInvocationContext().getOptionOverrides().setSuppressLocking(true);
+ caches[0].getRoot().addChild(fqn1).put(map);
+ ((CacheSPI)caches[0]).getInvocationContext().getOptionOverrides().setSuppressLocking(true);
+ assertEquals("Value should be set", "2", caches[0].get(fqn, "2"));
}
More information about the jboss-cvs-commits
mailing list