Class TimeoutUninterruptableTest
java.lang.Object
org.jboss.arquillian.testng.Arquillian
org.eclipse.microprofile.fault.tolerance.tck.TimeoutUninterruptableTest
- All Implemented Interfaces:
org.testng.IHookable
,org.testng.ITestNGListener
public class TimeoutUninterruptableTest
extends org.jboss.arquillian.testng.Arquillian
Test behaviour when a
@Timeout
is used but the method does not respond to interrupts.
This provokes a lot of edge case interactions between Timeout and other annotations.
Includes test for Timeout, Timeout + Async, Timeout + Async + Bulkhead, Timeout + Async + Retry.
-
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 TypeMethodDescriptionvoid
cleanup()
Cleans up any waiting futures that have been created in the teststatic org.jboss.shrinkwrap.api.spec.WebArchive
void
void
void
void
Test that the timeout timer is started when the execution is added to the queuevoid
void
Test that the fallback is run as soon as the timeout occursvoid
Methods inherited from class org.jboss.arquillian.testng.Arquillian
arquillianAfterClass, arquillianAfterSuite, arquillianAfterTest, arquillianArgumentProvider, arquillianBeforeClass, arquillianBeforeSuite, arquillianBeforeTest, run
-
Constructor Details
-
TimeoutUninterruptableTest
public TimeoutUninterruptableTest()
-
-
Method Details
-
deployment
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deployment() -
testTimeout
public void testTimeout() -
testTimeoutAsync
- Throws:
Exception
-
testTimeoutAsyncCS
- Throws:
InterruptedException
-
testTimeoutAsyncBulkhead
- Throws:
InterruptedException
-
testTimeoutAsyncBulkheadQueueTimed
Test that the timeout timer is started when the execution is added to the queue- Throws:
InterruptedException
- if the test is interruptedExecutionException
-
testTimeoutAsyncRetry
public void testTimeoutAsyncRetry() -
testTimeoutAsyncFallback
Test that the fallback is run as soon as the timeout occurs- Throws:
InterruptedException
- if the test is interrupted
-
cleanup
@AfterMethod public void cleanup()Cleans up any waiting futures that have been created in the test
-