public class AsynchronousCSTest
extends org.jboss.arquillian.testng.Arquillian
Constructor and Description |
---|
AsynchronousCSTest() |
Modifier and Type | Method and Description |
---|---|
void |
completeWaitingFutures()
Ensure that any waiting futures get completed at the end of each test
|
static org.jboss.shrinkwrap.api.spec.WebArchive |
deploy() |
void |
testAsyncCallbacksChained()
Test that the callbacks added to the initial stage are executed
after the stage returned by the asynchronous method call is completed.
|
void |
testAsyncCompletesExceptionallyWhenCompletedExceptionally()
Test that the stage returned by calling an asynchronous method is
completed exceptionally if the method returns a stage completed exceptionally
|
void |
testAsyncCompletesExceptionallyWhenExceptionThrown()
Test that the stage returned by calling an asynchronous method is
completed exceptionally if the method throws an exception
|
void |
testAsyncIsFinished()
Test that the stage returned by calling an asynchronous method is done
if called after waiting enough time to end the operation
|
void |
testAsyncIsNotFinished()
Test that the stage returned by calling an asynchronous method is not
done if called right after the operation
|
void |
testClassLevelAsyncIsFinished()
Test that the stage returned by calling a method in an asynchronous
class is done if called after waiting enough time to end the operation
|
void |
testClassLevelAsyncIsNotFinished()
Test that the stage returned by calling a method in an asynchronous
class is not done if called right after the operation
|
@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deploy()
public void testAsyncIsNotFinished()
public void testAsyncIsFinished()
public void testClassLevelAsyncIsNotFinished()
public void testClassLevelAsyncIsFinished()
public void testAsyncCallbacksChained()
public void testAsyncCompletesExceptionallyWhenExceptionThrown()
public void testAsyncCompletesExceptionallyWhenCompletedExceptionally()
public void completeWaitingFutures()
Important in case tests end early due to an exception or failure.
Copyright © 2020 Eclipse Foundation. All rights reserved.