1516171819202122232425
public class LoggerFactoryTest { @Test public void testNopLogger() { LoggerFactory.setLoggerFactory(new NOPLoggerFactory()); Logger log = LoggerFactory.getLogger("foo"); assertEquals("*", log.getName()); PrintStream out = System.out;
2324252627282930313233
protected CoreConnectionPool connectionPool; protected DbOomManager dboom; protected void init() { LoggerFactory.setLoggerFactory(new NOPLoggerFactory() { @Override public Logger getLogger(String name) { return new NOPLogger("") { @Override public boolean isWarnEnabled() {