@RunAsClient public class TckRecoveryTests extends Object
Tests for the recovery of failed LRA services. Test that LRA functions properly even in case of service failures.
This test is meant to be run in "run as client mode controlling the behaviour not via CDI injection but via HTTP calls.
The @Deployment
is defined as managed = false
which means that Arquillian does not automatically deploy the deployment at the start of the test
and the test control this step on its own.
Modifier and Type | Field and Description |
---|---|
org.junit.rules.TestName |
testName |
Constructor and Description |
---|
TckRecoveryTests() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deploy() |
void |
testCancelWhenParticipantIsRestarted(URL deploymentURL)
This test verifies that if the microservice application fails after
it enlists with a LRA and then it is restarted again the Compensate
callbacks are still received correctly.
|
void |
testCancelWhenParticipantIsUnavailable(URL deploymentURL)
This test verifies that if the microservice application which
enlisted with the LRA fails and the LRA is ended during the time
the service is still down, the Compensate callbacks are received
when the microservice application is started again.
|
public void before()
public void after()
@Deployment(name="tck-recovery", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deploy()
public void testCancelWhenParticipantIsRestarted(@ArquillianResource URL deploymentURL)
deploymentURL
- the URL of the arquillian deploymentpublic void testCancelWhenParticipantIsUnavailable(@ArquillianResource URL deploymentURL)
deploymentURL
- the URL of the arquillian deploymentCopyright © 2021 Eclipse Foundation. All rights reserved.