}
log.info("Cache A details:\n" + cacheA.printDetails());
// Compare cache contents
Person p1 = null;
Person p2 = null;
for (int i = 0; i < count; i++)
{
log.info("Cache " + names[i] + " details:\n" +
stressors[i].getTreeCache().printDetails());
for (int j = 0; j < SUBTREE_SIZE; j++)
{
String fqn = "/" + names[i] +"/" + j;
log.info("TEST: Getting A:" + fqn);
p1 = (Person) cacheA.getObject(fqn);
boolean p1Null = p1 == null;
log.info("TEST: Getting " + names[i] + ":" + fqn);
p2 = (Person) stressors[i].getTreeCache().getObject(fqn);
boolean p2Null = p2 == null;
assertEquals("Run " + x + ": " + fqn +
" null status matches", p1Null, p2Null);
if (!p1Null)
{
assertEquals("Run " + x + ": A:" + fqn + " age matches " + names[i] + ":" + fqn,
p1.getAge(), p2.getAge());
assertEquals("Run " + x + ": A:" + fqn + " name matches " + names[i] + ":" + fqn,
p1.getName(), p2.getName());
assertEquals("Run " + x + ": A:" + fqn + " address matches " + names[i] + ":" + fqn,
p1.getAddress().getStreet(),
p2.getAddress().getStreet());
}
}
}
}