public class TckTests extends TckTestBase
testName
Constructor and Description |
---|
TckTests() |
Modifier and Type | Method and Description |
---|---|
void |
acceptCancelTest() |
void |
acceptCloseTest() |
void |
cancelLRA()
Starting LRA and cancelling it.
|
void |
closeLRA()
Starting LRA and closing it.
|
void |
compensateMultiLevelNestedActivity() |
void |
completeMultiLevelNestedActivity() |
void |
dependentLRA() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deploy() |
void |
join() |
void |
joinLRAViaHeader() |
void |
joinWithOneResourceDifferentMethodTwiceWithCancel()
client 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
|
void |
joinWithOneResourceDifferentMethodTwiceWithClose()
client 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
|
void |
joinWithOneResourceSameMethodTwiceWithCancel()
client invokes the same participant method twice in the same LRA context
cancel the LRA
check that the participant was asked to compensate only once
|
void |
joinWithOneResourceSameMethodTwiceWithClose()
client invokes the same participant method twice in the same LRA context
close the LRA
check that the participant was asked to complete only once
|
void |
joinWithTwoResourcesWithCancel()
client invokes different participants in the same LRA context
cancel the LRA
check that both participants were asked to compensate
|
void |
joinWithTwoResourcesWithClose()
client invokes different participant in the same LRA context
close the LRA
check that both participants were asked to complete
|
void |
leaveLRA() |
void |
mixedMultiLevelNestedActivity() |
void |
nestedActivity() |
void |
noLRATest() |
void |
testAfterLRAListener()
TCK test to verify that methods annotated with
AfterLRA
are notified correctly when an LRA terminates |
void |
testAfterLRAParticipant()
TCK test to verify that methods annotated with
AfterLRA
are notified correctly when an LRA terminates |
void |
timeLimit() |
void |
timeLimitWithPreConditionFailed()
Service A - Timeout 500 ms
Service B - Type.MANDATORY
Service A calls Service B after it has waited 1 sec.
|
after, before
@Deployment(name="tcktests") public static org.jboss.shrinkwrap.api.spec.WebArchive deploy()
public void cancelLRA() throws javax.ws.rs.WebApplicationException
Starting LRA and cancelling it.
It's expected the LRA won't be listed in active LRAs when cancelled.
javax.ws.rs.WebApplicationException
public void closeLRA() throws javax.ws.rs.WebApplicationException
Starting LRA and closing it.
It's expected the LRA won't be listed in active LRAs when closed.
javax.ws.rs.WebApplicationException
public void nestedActivity() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void completeMultiLevelNestedActivity() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void compensateMultiLevelNestedActivity() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void mixedMultiLevelNestedActivity() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void joinLRAViaHeader() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void join() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void testAfterLRAParticipant() throws javax.ws.rs.WebApplicationException, InterruptedException
AfterLRA
are notified correctly when an LRA terminatesInterruptedException
- when waiting for the finishing the callbacks is interruptedjavax.ws.rs.WebApplicationException
public void testAfterLRAListener()
AfterLRA
are notified correctly when an LRA terminatespublic void leaveLRA() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void dependentLRA() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void timeLimit()
public void timeLimitWithPreConditionFailed()
public void acceptCloseTest() throws javax.ws.rs.WebApplicationException, InterruptedException
javax.ws.rs.WebApplicationException
InterruptedException
public void acceptCancelTest() throws javax.ws.rs.WebApplicationException, InterruptedException
javax.ws.rs.WebApplicationException
InterruptedException
public void noLRATest() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void joinWithOneResourceSameMethodTwiceWithCancel() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void joinWithOneResourceDifferentMethodTwiceWithCancel() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void joinWithOneResourceSameMethodTwiceWithClose() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void joinWithOneResourceDifferentMethodTwiceWithClose() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void joinWithTwoResourcesWithClose() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
public void joinWithTwoResourcesWithCancel() throws javax.ws.rs.WebApplicationException
javax.ws.rs.WebApplicationException
Copyright © 2021 Eclipse Foundation. All rights reserved.