Vector entries = mockHandler.getMessages();
assertEquals(1,entries.size());
}
public void testLogger2() {
MockHandler mockHandler = getFreshHandler("TestGenerator");
Logger testLogger = LogManager.getLogger("de.xcom","test");
testLogger.trace("Hello world");
assertEquals(1,mockHandler.getMessages().size());
testLogger.info("Hello world");
assertEquals(2,mockHandler.getMessages().size());
testLogger.debug("Hello world");
assertEquals(3,mockHandler.getMessages().size());
testLogger.warn("Hello world");
assertEquals(4,mockHandler.getMessages().size());
testLogger.error("Hello world");
assertEquals(5,mockHandler.getMessages().size());
testLogger.fatal("Hello world");
assertEquals(6,mockHandler.getMessages().size());
}