public class DefaultExamReactor extends Object implements ExamReactor
TestContainer state from the observer. It is also in
control to map probes to their configurations or vice versa. In essence, this implements the
Container re-start/re-use policy topic by collecting relevant tests and configurations and
passing them to a (user selected factory (see stage()).| Constructor and Description |
|---|
DefaultExamReactor(org.ops4j.pax.exam.ExamSystem system,
org.ops4j.pax.exam.TestContainerFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguration(org.ops4j.pax.exam.Option[] configuration)
Add the Configuration that contribute to desired container(s) you will get after calling
ExamReactor.stage(StagedExamReactorFactory). |
void |
addProbe(org.ops4j.pax.exam.TestProbeBuilder builder)
Add the probe that contribute to desired container(s) you will get after calling
ExamReactor.stage(StagedExamReactorFactory). |
StagedExamReactor |
stage(StagedExamReactorFactory factory)
Last thing you parseForTests on the reactor usually.
|
public DefaultExamReactor(org.ops4j.pax.exam.ExamSystem system,
org.ops4j.pax.exam.TestContainerFactory factory)
public void addConfiguration(org.ops4j.pax.exam.Option[] configuration)
ExamReactorExamReactor.stage(StagedExamReactorFactory).addConfiguration in interface ExamReactorconfiguration - a set of (user-end) options.public void addProbe(org.ops4j.pax.exam.TestProbeBuilder builder)
ExamReactorExamReactor.stage(StagedExamReactorFactory).addProbe in interface ExamReactorbuilder - builder that will (in the end) create a probe to be installed in the target
container.public StagedExamReactor stage(StagedExamReactorFactory factory)
ExamReactorstage in interface ExamReactorfactory - to be used to stage. (usually a strategy)Copyright © 2006–2018 OPS4J - Open Participation Software for Java. All rights reserved.