@Test public void debugMessageLevelShouldNotLogToDebugIfDisabled() { mavenLogger.debug("Ta daa!"); when(logMock.isDebugEnabled()).thenReturn(false); verify(logMock).isDebugEnabled(); 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);  }