@Test void shouldNotLog_ifNotEnabled() { SimpleLogger simpleLogger = SimpleLogger.builder() .build(); Request request = mock(Request.class); Response response = mock(Response.class); simpleLogger.logRequest("test", request); simpleLogger.logResponse("test", response); verifyZeroInteractions(request, response); }
public static Builder builder() { return new Builder(); }
SimpleLogger extends AbstractLogger { public static Builder builder() { return new Builder(); } }
SimpleLogger extends AbstractLogger { public static Builder builder() { return new Builder(); } private  SimpleLogger(boolean enabled, boolean requestEnabled, boolean responseEnabled,
      boolean headersEnabled); }
SimpleLogger extends AbstractLogger { public static Builder builder() { return new Builder(); } private  SimpleLogger(boolean enabled, boolean requestEnabled, boolean responseEnabled,
      boolean headersEnabled); static Builder builder(); }
SimpleLogger extends AbstractLogger { public static Builder builder() { return new Builder(); } private  SimpleLogger(boolean enabled, boolean requestEnabled, boolean responseEnabled,
      boolean headersEnabled); static Builder builder();  }