@Test void verifyDescription() { RequestNotRetriedEvent event = new RequestNotRetriedEvent(Event.Severity.INFO, GetRequest.class, mock(RequestContext.class), RetryReason.UNKNOWN, null); assertEquals("Request GetRequest not retried per RetryStrategy (Reason: UNKNOWN)", event.description()); }
@Override public String description() { return "Request " + clazz.getSimpleName() + " not retried per RetryStrategy (Reason: " + retryReason + ")"; }
RequestNotRetriedEvent extends AbstractEvent { @Override public String description() { return "Request " + clazz.getSimpleName() + " not retried per RetryStrategy (Reason: " + retryReason + ")"; } }
RequestNotRetriedEvent extends AbstractEvent { @Override public String description() { return "Request " + clazz.getSimpleName() + " not retried per RetryStrategy (Reason: " + retryReason + ")"; } RequestNotRetriedEvent(final Severity severity, final Class<? extends Request> clazz, final RequestContext context,
                                final RetryReason reason, final Throwable throwable); }
RequestNotRetriedEvent extends AbstractEvent { @Override public String description() { return "Request " + clazz.getSimpleName() + " not retried per RetryStrategy (Reason: " + retryReason + ")"; } RequestNotRetriedEvent(final Severity severity, final Class<? extends Request> clazz, final RequestContext context,
                                final RetryReason reason, final Throwable throwable); RetryReason retryReason(); @Override Throwable cause(); @Override String description(); }
RequestNotRetriedEvent extends AbstractEvent { @Override public String description() { return "Request " + clazz.getSimpleName() + " not retried per RetryStrategy (Reason: " + retryReason + ")"; } RequestNotRetriedEvent(final Severity severity, final Class<? extends Request> clazz, final RequestContext context,
                                final RetryReason reason, final Throwable throwable); RetryReason retryReason(); @Override Throwable cause(); @Override String description();  }