use of com.nike.fastbreak.exception.CircuitBreakerTimeoutException in project riposte by Nike-Inc.
the class BackstopperRiposteFrameworkErrorHandlerListenerTest method should_handle_CircuitBreakerException.
@Test
public void should_handle_CircuitBreakerException() {
verifyExceptionHandled(new CircuitBreakerOpenException("foo", "bar"), singletonError(listener.CIRCUIT_BREAKER_OPEN_API_ERROR));
verifyExceptionHandled(new CircuitBreakerTimeoutException("foo", "bar"), singletonError(listener.CIRCUIT_BREAKER_TIMEOUT_API_ERROR));
verifyExceptionHandled(new CircuitBreakerException("foo", "bar") {
}, singletonError(listener.CIRCUIT_BREAKER_GENERIC_API_ERROR));
}
Aggregations