fail("Failed to insert data" + e);
e.printStackTrace();
}
}
EvictionController evictionController = new EvictionController(cache);
evictionController.startEviction();
String str1 = rootStr + "7";
Fqn fqn1 = Fqn.fromString(str1);
String str2 = rootStr + "7/7";
Fqn fqn2 = Fqn.fromString(str2);
try
{
assertNotNull(cache.get(fqn2, str2));
assertNotNull(cache.get(fqn1, str1));
cache.removeNode(fqn2);
evictionController.startEviction();
assertNull(cache.get(fqn2, str2));
assertNotNull(cache.get(fqn1, str1));
cache.removeNode(fqn1);
evictionController.startEviction();
assertNull(cache.get(fqn1, str1));
assertNull(cache.get(fqn2, str2));
String str3 = rootStr + "5/5";
String str4 = rootStr + "5";
Fqn fqn3 = Fqn.fromString(str3);
Fqn fqn4 = Fqn.fromString(str4);
assertNotNull(cache.get(fqn3, str3));
assertNotNull(cache.get(fqn4, str4));
evictionController.startEviction();
// remove the node above fqn4 /org/jboss/test/5 will cascade the delete into /org/jboss/test/5/5
cache.removeNode(fqn4);
evictionController.startEviction();
assertNull(cache.get(fqn3, str3));
assertNull(cache.get(fqn4, str4));
}
catch (Exception e)
{