Class RetryTimeoutTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.fault.tolerance.tck.RetryTimeoutTest
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class RetryTimeoutTest
extends org.jboss.arquillian.testng.Arquillian
Test the combination of the @Retry and @Timeout annotations.
- Author:
- Emily Jiang, 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
Test that a Service is retried the expected number of times.void
Test that a Service is retried the expected number of times.void
Test that a service is not retried if TimeoutException is included in the abortOn attributevoid
Test that a service is not retried if TimeoutException is not included in the retryOn attributeMethods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Constructor Details
-
RetryTimeoutTest
public RetryTimeoutTest()
-
-
Method Details
-
deploy
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deploy() -
testRetryTimeout
public void testRetryTimeout()Test that a Service is retried the expected number of times. A timeout is configured for serviceA and in this case the service should generate Timeout exceptions. The service should be retried. -
testRetryNoTimeout
public void testRetryNoTimeout()Test that a Service is retried the expected number of times. A timeout is configured for serviceA but the service should fail before the timeout is reached and generate a RuntimeException. The service should be retried. -
testRetryWithoutRetryOn
public void testRetryWithoutRetryOn()Test that a service is not retried if TimeoutException is not included in the retryOn attribute -
testRetryWithAbortOn
public void testRetryWithAbortOn()Test that a service is not retried if TimeoutException is included in the abortOn attribute
-