[jbosscache-commits] JBoss Cache SVN: r4636 - core/trunk/src/test/java/org/jboss/cache/invalidation.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Wed Oct 17 12:32:01 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-10-17 12:32:01 -0400 (Wed, 17 Oct 2007)
New Revision: 4636
Modified:
core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java
Log:
[JBCACHE-1200] Modify test to show the issue
Modified: core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java 2007-10-17 16:08:52 UTC (rev 4635)
+++ core/trunk/src/test/java/org/jboss/cache/invalidation/InvalidationInterceptorTest.java 2007-10-17 16:32:01 UTC (rev 4636)
@@ -412,11 +412,11 @@
// this fqn is relative, but since it is from the root it may as well be absolute
Fqn<String> fqn = Fqn.fromString("/test/fqn");
cache1.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
- root1.addChild(fqn);
- assertTrue(root1.hasChild(fqn));
+ cache1.put(fqn, "key", "value");
+ assertEquals("value", cache1.get(fqn, "key"));
cache2.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
- root2.addChild(fqn);
- assertTrue(root2.hasChild(fqn));
+ cache2.put(fqn, "key", "value");
+ assertEquals("value", cache2.get(fqn, "key"));
assertEquals(true, cache1.removeNode(fqn));
assertFalse(root1.hasChild(fqn));
@@ -426,11 +426,11 @@
Fqn<String> child = Fqn.fromString("/test/fqn/child");
cache1.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
- root1.addChild(child);
- assertTrue(root1.hasChild(child));
+ cache1.put(child, "key", "value");
+ assertEquals("value", cache1.get(child, "key"));
cache2.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
- root2.addChild(child);
- assertTrue(root2.hasChild(child));
+ cache2.put(child, "key", "value");
+ assertEquals("value", cache2.get(child, "key"));
assertEquals(true, cache1.removeNode(fqn));
assertFalse(root1.hasChild(fqn));
More information about the jbosscache-commits
mailing list