AbstractLogger implements Logger { @Override public void warn(String message) { log(Level.WARN, NO_THROWABLE, message); } AbstractLogger(final String name, final LoggerFormatter formatter); @Override Level getLevel(); @Override void setLevel(Level level); String getName(); @Override void setFormatter(LoggerFormatter formatter); @Override LoggerFormatter getFormatter(); @Override void addListener(LoggerEventListener listener); @Override void removeListener(LoggerEventListener listener); @Override void trace(String message); @Override void trace(Throwable throwable); @Override void trace(String format, Object arg); @Override void trace(String format, Object arg1, Object arg2); @Override void trace(String format, Object arg1, Object arg2, Object arg3); @Override void trace(String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void trace(Throwable throwable, String message); @Override void trace(Throwable throwable, String format, Object arg); @Override void trace(Throwable throwable, String format, Object arg1, Object arg2); @Override void trace(Throwable throwable, String format, Object arg1, Object arg2, Object arg3); @Override void trace(Throwable throwable, String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void debug(String message); @Override void debug(Throwable throwable); @Override void debug(String format, Object arg); @Override void debug(String format, Object arg1, Object arg2); @Override void debug(String format, Object arg1, Object arg2, Object arg3); @Override void debug(String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void debug(Throwable throwable, String message); @Override void debug(Throwable throwable, String format, Object arg); @Override void debug(Throwable throwable, String format, Object arg1, Object arg2); @Override void debug(Throwable throwable, String format, Object arg1, Object arg2, Object arg3); @Override void debug(Throwable throwable, String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void info(String message); @Override void info(Throwable throwable); @Override void info(String format, Object arg); @Override void info(String format, Object arg1, Object arg2); @Override void info(String format, Object arg1, Object arg2, Object arg3); @Override void info(String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void info(Throwable throwable, String message); @Override void info(Throwable throwable, String format, Object arg); @Override void info(Throwable throwable, String format, Object arg1, Object arg2); @Override void info(Throwable throwable, String format, Object arg1, Object arg2, Object arg3); @Override void info(Throwable throwable, String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void warn(String message); @Override void warn(Throwable throwable); @Override void warn(String format, Object arg); @Override void warn(String format, Object arg1, Object arg2); @Override void warn(String format, Object arg1, Object arg2, Object arg3); @Override void warn(String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void warn(Throwable throwable, String message); @Override void warn(Throwable throwable, String format, Object arg); @Override void warn(Throwable throwable, String format, Object arg1, Object arg2); @Override void warn(Throwable throwable, String format, Object arg1, Object arg2, Object arg3); @Override void warn(Throwable throwable, String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void error(String message); @Override void error(Throwable throwable); @Override void error(String format, Object arg); @Override void error(String format, Object arg1, Object arg2); @Override void error(String format, Object arg1, Object arg2, Object arg3); @Override void error(String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void error(Throwable throwable, String message); @Override void error(Throwable throwable, String format, Object arg); @Override void error(Throwable throwable, String format, Object arg1, Object arg2); @Override void error(Throwable throwable, String format, Object arg1, Object arg2, Object arg3); @Override void error(Throwable throwable, String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void fatal(String message); @Override void fatal(Throwable throwable); @Override void fatal(String format, Object arg); @Override void fatal(String format, Object arg1, Object arg2); @Override void fatal(String format, Object arg1, Object arg2, Object arg3); @Override void fatal(String format, Object arg1, Object arg2, Object arg3, Object... args); @Override void fatal(Throwable throwable, String message); @Override void fatal(Throwable throwable, String format, Object arg1, Object arg2); @Override void fatal(Throwable throwable, String format, Object arg); @Override void fatal(Throwable throwable, String format, Object arg1, Object arg2, Object arg3); @Override void fatal(Throwable throwable, String format, Object arg1, Object arg2, Object arg3, Object... args);  }
@Test void warn() { instance.warn(MESSAGE); assertEquals(LOGGER_FORMATTER.apply(Level.WARN, LOGGER_NAME, MESSAGE), output); }
@Test void testWarn() { instance.warn(EXCEPTION); assertTrue(output.contains(RuntimeException.class.getName())); assertTrue(output.contains(Level.WARN.toText())); }
@Test void testWarnThrowableNull() { instance.warn((Throwable) null); assertTrue(output.contains(Level.WARN.toText())); }
@Test void testWarn3() { instance.warn(FORMATTING_MESSAGE, MESSAGE); assertTrue(output.contains(FORMATTING_MESSAGE_PREFIX + "|" + MESSAGE)); }
@Test void testWarn4() { instance.warn(FORMATTING_MESSAGE2, MESSAGE, MESSAGE2); assertTrue(output.contains(FORMATTING_MESSAGE_PREFIX + "|" + MESSAGE + "|" + MESSAGE2)); }
@Test void testWarn5() { instance.warn(FORMATTING_MESSAGE3, MESSAGE, MESSAGE2, MESSAGE3); assertTrue(output.contains(FORMATTING_MESSAGE_PREFIX + "|" + MESSAGE + "|" + MESSAGE2 + "|" + MESSAGE3)); }
@Test void testWarn6() { instance.warn(FORMATTING_MESSAGE4, MESSAGE, MESSAGE2, MESSAGE3, MESSAGE4); assertTrue(output.contains(FORMATTING_MESSAGE_PREFIX + "|" + MESSAGE + "|" + MESSAGE2 + "|" + MESSAGE3 + "|" + MESSAGE4)); }