Class DisableFTEnableOnMethodTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.fault.tolerance.tck.disableEnv.DisableFTEnableOnMethodTest
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class DisableFTEnableOnMethodTest
extends org.jboss.arquillian.testng.Arquillian
Test that annotations can be disabled at the class level and then re-enabled at the method 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
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
-
DisableFTEnableOnMethodTest
public DisableFTEnableOnMethodTest()
-
-
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. -
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()
-