Package org.eclipse.microprofile.lra.tck
Class TckInvalidSignaturesTests
java.lang.Object
org.eclipse.microprofile.lra.tck.TckInvalidSignaturesTests
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.eclipse.microprofile.lra.tck.TckInvalidSignaturesTests.DeploymentNameRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()static org.jboss.shrinkwrap.api.spec.WebArchivestatic org.jboss.shrinkwrap.api.spec.WebArchivestatic org.jboss.shrinkwrap.api.spec.WebArchivestatic org.jboss.shrinkwrap.api.spec.WebArchivestatic org.jboss.shrinkwrap.api.spec.WebArchivevoidVerify that invalid@AfterLRAmethod signature is detectedvoidVerify that invalid type of argument (int) in participant method is detectedvoidVerify that invalid LRA resource which does not contain any of @Compensate or @AfterLRA methods is detectedvoidVerify that invalid return type (String) in participant method is detectedvoidVerify that too many arguments (more than 2) in partcipant method are detected
-
Field Details
-
deploymentNameRule
public org.eclipse.microprofile.lra.tck.TckInvalidSignaturesTests.DeploymentNameRule deploymentNameRule
-
-
Constructor Details
-
TckInvalidSignaturesTests
public TckInvalidSignaturesTests()
-
-
Method Details
-
deployInvalidReturnTypeParticipant
@Deployment(name="nonjaxrs-return-type-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidReturnTypeParticipant() -
deployTooManyArgsParticipant
@Deployment(name="too-many-args-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployTooManyArgsParticipant() -
deployInvalidArgumentTypeParticipant
@Deployment(name="nonjaxrs-argument-type-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidArgumentTypeParticipant() -
deployInvalidAfterLRASignatureResource
@Deployment(name="invalid-after-lra-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidAfterLRASignatureResource() -
deployInvalidLRAResource
@Deployment(name="invalid-lra-resource-deploy", managed=false) public static org.jboss.shrinkwrap.api.spec.WebArchive deployInvalidLRAResource() -
after
public void after() -
invalidReturnTypeInParticipantMethodTest
public void invalidReturnTypeInParticipantMethodTest()Verify that invalid return type (String) in participant method is detected -
tooManyArgsInParticipantMethodTest
public void tooManyArgsInParticipantMethodTest()Verify that too many arguments (more than 2) in partcipant method are detected -
invalidArgumentTypeInParticipantMethodTest
public void invalidArgumentTypeInParticipantMethodTest()Verify that invalid type of argument (int) in participant method is detected -
invalidAfterLRASignatureTest
public void invalidAfterLRASignatureTest()Verify that invalid@AfterLRAmethod signature is detected -
invalidLRAResourceWithoutCompensateOrAfterLRATest
public void invalidLRAResourceWithoutCompensateOrAfterLRATest()Verify that invalid LRA resource which does not contain any of @Compensate or @AfterLRA methods is detected
-