public class PaxExamRule extends Object implements org.junit.rules.TestRule
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() { // ... }
Modifier and Type | Field and Description |
---|---|
static String |
AFTER_EXAM_FAILURE_MESSAGE |
static String |
BEFORE_EXAM_FAILURE_MESSAGE |
static String |
EXAM_SETUP_FAILED_MESSAGE |
Constructor and Description |
---|
PaxExamRule(Object testInstance) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
public static final String BEFORE_EXAM_FAILURE_MESSAGE
public static final String AFTER_EXAM_FAILURE_MESSAGE
public static final String EXAM_SETUP_FAILED_MESSAGE
public PaxExamRule(Object testInstance)
This work is licensed under a Creative Commons Attribution 4.0 International License.