Class DisableAnnotationGloballyEnableOnClassTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.fault.tolerance.tck.disableEnv.DisableAnnotationGloballyEnableOnClassTest
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class DisableAnnotationGloballyEnableOnClassTest
extends org.jboss.arquillian.testng.Arquillian
Test that annotations can be disabled globally and then re-enabled at the class level
- Author:
- Antoine Sabot-Durand, Neil Young, Andrew Rouse
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.arquillian.testng.Arquillian
org.jboss.arquillian.testng.Arquillian.UpdateResultListener
-
Field Summary
Fields inherited from class org.jboss.arquillian.testng.Arquillian
ARQUILLIAN_DATA_PROVIDER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jboss.shrinkwrap.api.spec.WebArchive
deploy()
void
A test to check that asynchronous is enabledvoid
Test whether Bulkhead is enabled onwaitWithBulkhead()
void
CircuitBreaker is enabled on the method so the policy should be appliedvoid
Test that a Fallback service is used when service fails.void
failAndRetryOnce is annotated with maxRetries = 1 so it is expected to execute 2 times.void
Test Timeout is enabled, should fail with a timeout exceptionMethods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Constructor Details
-
DisableAnnotationGloballyEnableOnClassTest
public DisableAnnotationGloballyEnableOnClassTest()
-
-
Method Details
-
deploy
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deploy() -
testRetryEnabled
public void testRetryEnabled()failAndRetryOnce is annotated with maxRetries = 1 so it is expected to execute 2 times. -
testFallbackEnabled
public void testFallbackEnabled()Test that a Fallback service is used when service fails. Retry is also enabled so there should be two executions -
testCircuitBreaker
public void testCircuitBreaker()CircuitBreaker is enabled on the method so the policy should be applied -
testTimeout
public void testTimeout()Test Timeout is enabled, should fail with a timeout exception -
testAsync
A test to check that asynchronous is enabled- Throws:
InterruptedException
- interruptedExecutionException
- task was aborted
-
testBulkhead
public void testBulkhead()Test whether Bulkhead is enabled onwaitWithBulkhead()
-