super.onEvent(events);
}
};
addEventListener(result);
Tail tail = Tail.start(new File("target", "jcr.log"), MESSAGE);
try {
testRootNode.addNode("foo");
superuser.save();
removeEventListener(result);
result.getEvents(5000);
assertTrue("Warn message expected in log file.",
tail.getLines().iterator().hasNext());
} finally {
tail.close();
}
if (!exceptions.isEmpty()) {
fail(exceptions.get(0).toString());
}