for (int i = 0; i < 20; i++)
{
String str = rootStr + Integer.toString(i);
Fqn fqn = Fqn.fromString(str);
DataNode node = cache.get(fqn);
System.out.println(i + " " + node);
if (i > 9)
{
assertNull("Testing at " + i, node);
}
else
{
assertEquals(1 + i, node.numAttributes());
}
}
for (int i = 0; i < 17; i++)
{
cache.put("/org/jboss/data/" + Integer.toString(3), new Integer(100 + i), "value");
}
DataNode node = cache.get("/org/jboss/data/" + Integer.toString(3));
assertEquals(21, node.numAttributes());
_sleep(wakeupIntervalMillis + 500);
assertNull(cache.get("/org/jboss/data/" + Integer.toString(3)));
}