public class TckInvalidSignaturesTests extends Object
TCK that verifies that invalid non-JAX-RS participant method signatures are reported during deployment
Each test deploys an archive containing single invalid participant containing an error in its participant method signature and expects that such deployment is aborted according to the specification.
Modifier and Type | Field and Description |
---|---|
org.eclipse.microprofile.lra.tck.TckInvalidSignaturesTests.DeploymentNameRule |
deploymentNameRule |
Constructor and Description |
---|
TckInvalidSignaturesTests() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deployInvalidAfterLRASignatureResource() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deployInvalidArgumentTypeParticipant() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deployInvalidLRAResource() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deployInvalidReturnTypeParticipant() |
static org.jboss.shrinkwrap.api.spec.WebArchive |
deployTooManyArgsParticipant() |
void |
invalidAfterLRASignatureTest()
Verify that invalid
@AfterLRA method signature is detected |
void |
invalidArgumentTypeInParticipantMethodTest()
Verify that invalid type of argument (int) in participant method is detected
|
void |
invalidLRAResourceWithoutCompensateOrAfterLRATest()
Verify that invalid LRA resource which does not contain any of @Compensate or @AfterLRA methods is detected
|
void |
invalidReturnTypeInParticipantMethodTest()
Verify that invalid return type (String) in participant method is detected
|
void |
tooManyArgsInParticipantMethodTest()
Verify that too many arguments (more than 2) in partcipant method are detected
|
public org.eclipse.microprofile.lra.tck.TckInvalidSignaturesTests.DeploymentNameRule deploymentNameRule
@Deployment(name="nonjaxrs-return-type-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidReturnTypeParticipant()
@Deployment(name="too-many-args-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployTooManyArgsParticipant()
@Deployment(name="nonjaxrs-argument-type-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidArgumentTypeParticipant()
@Deployment(name="invalid-after-lra-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidAfterLRASignatureResource()
@Deployment(name="invalid-lra-resource-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidLRAResource()
public void after()
public void invalidReturnTypeInParticipantMethodTest()
public void tooManyArgsInParticipantMethodTest()
public void invalidArgumentTypeInParticipantMethodTest()
public void invalidAfterLRASignatureTest()
@AfterLRA
method signature is detectedpublic void invalidLRAResourceWithoutCompensateOrAfterLRATest()
Copyright © 2021 Eclipse Foundation. All rights reserved.