Package org.eclipse.microprofile.lra.tck
Class TckTests
java.lang.Object
org.eclipse.microprofile.lra.tck.TckTestBase
org.eclipse.microprofile.lra.tck.TckTests
-
Field Summary
Fields inherited from class org.eclipse.microprofile.lra.tck.TckTestBase
testName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidStarting LRA and cancelling it.voidcloseLRA()Starting LRA and closing it.voidvoidvoidstatic org.jboss.shrinkwrap.api.spec.WebArchivedeploy()voidjoin()voidvoidclient invokes the same participant twice but using different methods in the same LRA context cancel the LRA check that the participant was asked to compensate only oncevoidclient invokes the same participant twice but using different methods in the same LRA context close the LRA check that the participant was asked to complete only oncevoidclient invokes the same participant method twice in the same LRA context cancel the LRA check that the participant was asked to compensate only oncevoidclient invokes the same participant method twice in the same LRA context close the LRA check that the participant was asked to complete only oncevoidclient invokes different participants in the same LRA context cancel the LRA check that both participants were asked to compensatevoidclient invokes different participant in the same LRA context close the LRA check that both participants were asked to completevoidleaveLRA()voidvoidvoidvoidTCK test to verify that methods annotated withAfterLRAare notified correctly when an LRA terminatesvoidTCK test to verify that methods annotated withAfterLRAare notified correctly when an LRA terminatesvoidvoidService A - Timeout 500 ms Service B - Type.MANDATORY Service A calls Service B after it has waited 1 sec.Methods inherited from class org.eclipse.microprofile.lra.tck.TckTestBase
after, before
-
Constructor Details
-
TckTests
public TckTests()
-
-
Method Details
-
deploy
@Deployment(name="tcktests") public static org.jboss.shrinkwrap.api.spec.WebArchive deploy() -
cancelLRA
public void cancelLRA() throws jakarta.ws.rs.WebApplicationExceptionStarting LRA and cancelling it.
It's expected the LRA won't be listed in active LRAs when cancelled.
- Throws:
jakarta.ws.rs.WebApplicationException
-
closeLRA
public void closeLRA() throws jakarta.ws.rs.WebApplicationExceptionStarting LRA and closing it.
It's expected the LRA won't be listed in active LRAs when closed.
- Throws:
jakarta.ws.rs.WebApplicationException
-
nestedActivity
public void nestedActivity() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
completeMultiLevelNestedActivity
public void completeMultiLevelNestedActivity() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
compensateMultiLevelNestedActivity
public void compensateMultiLevelNestedActivity() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
mixedMultiLevelNestedActivity
public void mixedMultiLevelNestedActivity() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
joinLRAViaHeader
public void joinLRAViaHeader() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
join
public void join() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
testAfterLRAParticipant
public void testAfterLRAParticipant() throws jakarta.ws.rs.WebApplicationException, InterruptedExceptionTCK test to verify that methods annotated withAfterLRAare notified correctly when an LRA terminates- Throws:
InterruptedException- when waiting for the finishing the callbacks is interruptedjakarta.ws.rs.WebApplicationException
-
testAfterLRAListener
public void testAfterLRAListener()TCK test to verify that methods annotated withAfterLRAare notified correctly when an LRA terminates -
leaveLRA
public void leaveLRA() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
dependentLRA
public void dependentLRA() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
timeLimit
public void timeLimit() -
timeLimitWithPreConditionFailed
public void timeLimitWithPreConditionFailed()Service A - Timeout 500 ms Service B - Type.MANDATORY Service A calls Service B after it has waited 1 sec. Service A returns http Status from the call to Service B. test calls A and verifies if return is status 412 (precondition failed) or 410 (gone) since LRA is not active when Service B endpoint is called. -
acceptCloseTest
- Throws:
jakarta.ws.rs.WebApplicationExceptionInterruptedException
-
acceptCancelTest
- Throws:
jakarta.ws.rs.WebApplicationExceptionInterruptedException
-
noLRATest
public void noLRATest() throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
joinWithOneResourceSameMethodTwiceWithCancel
public void joinWithOneResourceSameMethodTwiceWithCancel() throws jakarta.ws.rs.WebApplicationExceptionclient invokes the same participant method twice in the same LRA context cancel the LRA check that the participant was asked to compensate only once- Throws:
jakarta.ws.rs.WebApplicationException
-
joinWithOneResourceDifferentMethodTwiceWithCancel
public void joinWithOneResourceDifferentMethodTwiceWithCancel() throws jakarta.ws.rs.WebApplicationExceptionclient invokes the same participant twice but using different methods in the same LRA context cancel the LRA check that the participant was asked to compensate only once- Throws:
jakarta.ws.rs.WebApplicationException
-
joinWithOneResourceSameMethodTwiceWithClose
public void joinWithOneResourceSameMethodTwiceWithClose() throws jakarta.ws.rs.WebApplicationExceptionclient invokes the same participant method twice in the same LRA context close the LRA check that the participant was asked to complete only once- Throws:
jakarta.ws.rs.WebApplicationException
-
joinWithOneResourceDifferentMethodTwiceWithClose
public void joinWithOneResourceDifferentMethodTwiceWithClose() throws jakarta.ws.rs.WebApplicationExceptionclient invokes the same participant twice but using different methods in the same LRA context close the LRA check that the participant was asked to complete only once- Throws:
jakarta.ws.rs.WebApplicationException
-
joinWithTwoResourcesWithClose
public void joinWithTwoResourcesWithClose() throws jakarta.ws.rs.WebApplicationExceptionclient invokes different participant in the same LRA context close the LRA check that both participants were asked to complete- Throws:
jakarta.ws.rs.WebApplicationException
-
joinWithTwoResourcesWithCancel
public void joinWithTwoResourcesWithCancel() throws jakarta.ws.rs.WebApplicationExceptionclient invokes different participants in the same LRA context cancel the LRA check that both participants were asked to compensate- Throws:
jakarta.ws.rs.WebApplicationException
-