@Test void shouldLogRequestHeaders_whenEnabled() { SimpleLogger simpleLogger = SimpleLogger.builder() .setEnabled(true) .setHeadersEnabled(true) .build(); Request request = mock(Request.class); when(request.headers()).thenReturn(Collections.singletonList(new HttpHeader("stuff"))); simpleLogger.logRequest("test", request); verify(request, times(0)).content(); verify(request, times(1)).headers(); }
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();  }