public class TckParticipantTests extends TckTestBase
testName| Constructor and Description |
|---|
TckParticipantTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelLraDuringBusinessMethod() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deployValidParticipant() |
void |
testNonJaxRsCompletionStageResponseAndParticipantStatus()
Test verifyies
CompletionStage parametrized by Response and
ParticipantStatus as valid non-JAX-RS participant methods return
types |
void |
testNonJaxRsCompletionStageVoid()
Test verifies
CompletionStage parametrized with Void as valid non-JAX-RS
participant method return type |
void |
validSignaturesChainTest()
This test verifies chained call of non-JAX-RS participant methods.
|
void |
validWebApplicationExceptionReturnedTest()
Test verifies that non-JAX-RS @Complete method is invoked according to the LRA protocol and that if
WebApplicationException is thrown inside of a non-JAX-RS participant method than Response it is
carrying is extracted and acted upon according to LRA response handling |
after, before@Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive deployValidParticipant()
public void validWebApplicationExceptionReturnedTest()
WebApplicationException is thrown inside of a non-JAX-RS participant method than Response it is
carrying is extracted and acted upon according to LRA response handlingpublic void validSignaturesChainTest()
throws InterruptedException
ParticipantStatus.Compensating (see ValidLRAParticipant)
indicating that non-JAX-RS @Status method should be invoked. The test then waits for recovery and then verifies
that @Status method is called. This method finishes compensation with return of the Response object
indicating failure and so the test then verifies that non-JAX-RS @Forget method has also been called.InterruptedException - When Test is interrupted during sleep.public void testNonJaxRsCompletionStageVoid()
throws InterruptedException
CompletionStage parametrized with Void as valid non-JAX-RS
participant method return typeInterruptedException - when waiting for the finishing the completion is interruptedpublic void testNonJaxRsCompletionStageResponseAndParticipantStatus()
throws InterruptedException
CompletionStage parametrized by Response and
ParticipantStatus as valid non-JAX-RS participant methods return
typesInterruptedException - When Test is interrupted during sleep.public void cancelLraDuringBusinessMethod()
throws InterruptedException,
ExecutionException,
TimeoutException
Copyright © 2018 – 2023 Eclipse Foundation. All rights reserved.
Use is subject to license terms.