@Test void shouldLogRetry_whenEnabled() { SimpleLogger simpleLogger = SimpleLogger.builder() .setEnabled(true) .build(); Response response = mock(Response.class); simpleLogger.logRetry( "test", new RetryContext(3, new IOException("bad"), response)); verify(response, times(1)).status(); }
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();  }