public class DisableAnnotationOnMethodsTest
extends org.jboss.arquillian.testng.Arquillian
Constructor and Description |
---|
DisableAnnotationOnMethodsTest() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.shrinkwrap.api.spec.WebArchive |
deploy() |
void |
testAsync()
A test to check that asynchronous is disabled
In normal operation, asyncClient.asyncWaitThenReturn() is launched asynchronously.
|
void |
testBulkhead()
Test whether Bulkhead is enabled on
waitWithBulkhead() |
void |
testCircuitClosedThenOpen()
CircuitBreaker policy being disabled the policy shouldn't be applied
|
void |
testFallbackDisabled()
Test that a Fallback service is ignored when service fails.
|
void |
testRetryDisabled()
failAndRetryOnce is annotated with maxRetries = 1 so it is expected to execute 2 times but as Retry is disabled,
then no retries should be attempted.
|
void |
testTimeout()
Test Timeout is disabled, should wait two seconds and then get a TestException
|
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deploy()
public void testRetryDisabled()
public void testFallbackDisabled()
public void testCircuitClosedThenOpen()
public void testTimeout()
public void testAsync() throws InterruptedException, ExecutionException
InterruptedException
- interruptedExecutionException
- task was abortedpublic void testBulkhead() throws ExecutionException, InterruptedException
waitWithBulkhead()
InterruptedException
- interruptedExecutionException
- task was abortedCopyright © 2016 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.