Author: manik.surtani(a)jboss.com
Date: 2008-04-21 12:53:38 -0400 (Mon, 21 Apr 2008)
New Revision: 5608
Modified:
core/trunk/src/test/java/org/jboss/cache/api/NodeAPITest.java
Log:
Added test
Modified: core/trunk/src/test/java/org/jboss/cache/api/NodeAPITest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/api/NodeAPITest.java 2008-04-21 16:53:13 UTC
(rev 5607)
+++ core/trunk/src/test/java/org/jboss/cache/api/NodeAPITest.java 2008-04-21 16:53:38 UTC
(rev 5608)
@@ -387,4 +387,18 @@
assertNull(cache.get("/foo/1", "item"));
}
+ public void testDoubleRemovalOfData2() throws Exception
+ {
+ cache.put("/foo/1/2", "item", 1);
+ tm.begin();
+ assertEquals(cache.get("/foo/1", "item"), null);
+ cache.removeNode("/foo/1");
+ assertNull(cache.get("/foo/1", "item"));
+ cache.removeNode("/foo/1/2");
+ assertNull(cache.get("/foo/1", "item"));
+ tm.commit();
+ assertFalse(cache.exists("/foo/1"));
+ assertNull(cache.get("/foo/1/2", "item"));
+ assertNull(cache.get("/foo/1", "item"));
+ }
}