public class CircuitBreakerRetryTest
extends org.jboss.arquillian.testng.Arquillian
Constructor and Description |
---|
CircuitBreakerRetryTest() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
deploy() |
void |
testCircuitOpenWithFewRetries()
A test to exercise Circuit Breaker thresholds with insufficient retries to open the
Circuit so that the Circuit remains closed and a RuntimeException is caught.
|
void |
testCircuitOpenWithFewRetriesAsync()
A test to exercise Circuit Breaker thresholds with insufficient retries to open the
Circuit so that the Circuit remains closed and a RuntimeException is caught when
using an Asynchronous call.
|
void |
testCircuitOpenWithMoreRetries()
A test to exercise Circuit Breaker thresholds with sufficient retries to open the
Circuit and result in a CircuitBreakerOpenException.
|
void |
testCircuitOpenWithMoreRetriesAsync()
A test to exercise Circuit Breaker thresholds with sufficient retries to open the
Circuit and result in a CircuitBreakerOpenException using an Asynchronous call.
|
void |
testCircuitOpenWithMultiTimeouts()
Analogous to testCircuitOpenWithMoreRetries but execution failures are caused by timeouts.
|
void |
testCircuitOpenWithMultiTimeoutsAsync()
Analogous to testCircuitOpenWithMoreRetriesAsync but execution failures are caused by timeouts.
|
void |
testClassLevelCircuitOpenWithFewRetries()
Analogous to testCircuitOpenWithFewRetries with Class level @CircuitBreaker and @Retry annotations
that are overridden by serviceB.
|
void |
testClassLevelCircuitOpenWithMoreRetries()
Analogous to testCircuitOpenWithMoreRetries with Class level @CircuitBreaker and @Retry annotations
that are inherited by serviceA
|
void |
testNoRetriesIfAbortOn()
Test that we don't retry around an open circuit breaker if
CircuitBreakerOpenException is included in the abortOn attribute of the
Retry annotation
|
void |
testNoRetriesIfAbortOnAsync()
Test that we don't retry around an open circuit breaker if
CircuitBreakerOpenException is included in the abortOn attribute of the
Retry annotation
|
void |
testNoRetriesIfNotRetryOn()
Test that we don't retry around an open circuit breaker if
CircuitBreakerOpenException is not included in the retryOn attribute of the
Retry annotation
|
void |
testNoRetriesIfNotRetryOnAsync()
Test that we don't retry around an open circuit breaker if
CircuitBreakerOpenException is not included in the retryOn attribute of the
Retry annotation
|
void |
testRetriesSucceedWhenCircuitCloses()
Test that we retry around an open circuit breaker
|
void |
testRetriesSucceedWhenCircuitClosesAsync()
Test that we retry around an open circuit breaker
|
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deploy()
public void testCircuitOpenWithMoreRetries()
public void testCircuitOpenWithFewRetries()
public void testClassLevelCircuitOpenWithMoreRetries()
public void testClassLevelCircuitOpenWithFewRetries()
public void testCircuitOpenWithMultiTimeouts()
public void testRetriesSucceedWhenCircuitCloses()
Test that when retries are configured with sufficient delay, a call to an open circuit can retry until the circuit half-closes, allowing the call to succeed.
public void testNoRetriesIfNotRetryOn()
This test calls a method which only retries on TimeoutException
public void testNoRetriesIfAbortOn()
public void testCircuitOpenWithMoreRetriesAsync()
public void testCircuitOpenWithFewRetriesAsync()
public void testCircuitOpenWithMultiTimeoutsAsync()
public void testRetriesSucceedWhenCircuitClosesAsync()
Test that when retries are configured with sufficient delay, a call to an open circuit can retry until the circuit half-closes, allowing the call to succeed.
public void testNoRetriesIfNotRetryOnAsync()
This test calls a method which only retries on TimeoutException
public void testNoRetriesIfAbortOnAsync()
Copyright © 2020 Eclipse Foundation. All rights reserved.