@Test void shouldNotLogRequestBody_whenBodyIsTooLarge() { SimpleLogger simpleLogger = SimpleLogger.builder() .setEnabled(true) .setRequestEnabled(true) .build(); Request request = mock(Request.class); when(request.contentLength()).thenReturn(1024); simpleLogger.logRequest("test", request); verify(request, times(0)).content(); verify(request, times(0)).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();  }