Class PaxExamRule
java.lang.Object
org.codice.ddf.test.common.annotations.PaxExamRule
- All Implemented Interfaces:
org.junit.rules.TestRule
Adds support for
BeforeExam and AfterExam annotations with OPS4J Pax Exam
integration tests. There should only be one instance of the PaxExamRule for a test class,
including its super classes.
public class TestClass {
@Rule
public PaxExamRule paxExamRule = new PaxExamRule(this);
@BeforeExam
public void beforeExam() {
// ...
}
@AfterExam
public void afterExam() {
// ...
}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
-
Field Details
-
BEFORE_EXAM_FAILURE_MESSAGE
- See Also:
-
AFTER_EXAM_FAILURE_MESSAGE
- See Also:
-
EXAM_SETUP_FAILED_MESSAGE
- See Also:
-
-
Constructor Details
-
PaxExamRule
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-