public class TimeoutUninterruptableTest
extends org.jboss.arquillian.testng.Arquillian
@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.
| Constructor and Description |
|---|
TimeoutUninterruptableTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleans up any waiting futures that have been created in the test
|
static org.jboss.shrinkwrap.api.spec.WebArchive |
deployment() |
void |
testTimeout() |
void |
testTimeoutAsync() |
void |
testTimeoutAsyncBulkhead() |
void |
testTimeoutAsyncBulkheadQueueTimed()
Test that the timeout timer is started when the execution is added to the queue
|
void |
testTimeoutAsyncCS() |
void |
testTimeoutAsyncFallback()
Test that the fallback is run as soon as the timeout occurs
|
void |
testTimeoutAsyncRetry() |
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deployment()
public void testTimeout()
public void testTimeoutAsyncCS()
throws InterruptedException
InterruptedExceptionpublic void testTimeoutAsyncBulkhead()
throws InterruptedException
InterruptedExceptionpublic void testTimeoutAsyncBulkheadQueueTimed()
throws InterruptedException,
ExecutionException
InterruptedException - if the test is interruptedExecutionExceptionpublic void testTimeoutAsyncRetry()
public void testTimeoutAsyncFallback()
throws InterruptedException
InterruptedException - if the test is interrupted@AfterMethod public void cleanup()
Copyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.