@Test public void debugMessageLevelShouldLogToDebugIfEnabled() { when(logMock.isDebugEnabled()).thenReturn(true); mavenLogger.debug("Ta daa!"); verify(logMock).isDebugEnabled(); verify(logMock).debug("Ta daa!"); verifyNoMoreInteractions(logMock); }
@Override public void debug(Throwable throwable) { if (wrappedLog.isDebugEnabled()) { wrappedLog.debug(throwable); } }
MavenPluginLog implements PluginLog { @Override public void debug(Throwable throwable) { if (wrappedLog.isDebugEnabled()) { wrappedLog.debug(throwable); } } }
MavenPluginLog implements PluginLog { @Override public void debug(Throwable throwable) { if (wrappedLog.isDebugEnabled()) { wrappedLog.debug(throwable); } } MavenPluginLog(Log wrappedLog); }
MavenPluginLog implements PluginLog { @Override public void debug(Throwable throwable) { if (wrappedLog.isDebugEnabled()) { wrappedLog.debug(throwable); } } MavenPluginLog(Log wrappedLog); @Override void info(String content); @Override void debug(Throwable throwable); @Override void debug(String content); }
MavenPluginLog implements PluginLog { @Override public void debug(Throwable throwable) { if (wrappedLog.isDebugEnabled()) { wrappedLog.debug(throwable); } } MavenPluginLog(Log wrappedLog); @Override void info(String content); @Override void debug(Throwable throwable); @Override void debug(String content);  }