Test is committed; minor JIRA to improve it is
http://jira.jboss.com/jira/browse/JBCACHE-1199 .
This is a bit conceptually murky though, since the removeNode call actually removes the
node on the cache where the call was made, but leaves it around on remote nodes. For
example, a unit test that passes would look like this (assume the isValid() bit works):
| assertEquals(true, cache1.removeNode(fqn));
|
| // Node should actually be gone locally
| assertFalse(root1.hasChild(fqn));
|
| // Node should still exist but be "invalid" on remote caches
| Node remoteNode = root2.getChild(fqn);
| assertNotNull(remoteNode);
| assertFalse(remoteNode.isValid());
|
| assertEquals(false, cache1.removeNode(fqn));
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096159#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...