Search in sources :

Example 1 with TestProbeBuilder

use of org.ops4j.pax.exam.TestProbeBuilder in project fuse-karaf by jboss-fuse.

the class CredentialStoreStartupFailureIntegrationTest method setupContainer.

@Before
public void setupContainer() throws Exception {
    final Dummy dummy = new Dummy();
    final ReactorManager manager = ReactorManager.getInstance();
    final ExamReactor reactor = manager.prepareReactor(Dummy.class, dummy);
    final TestProbeBuilder probe = manager.createProbeBuilder(this);
    final TestAddress address = probe.addTest(Dummy.class, "dummy");
    manager.storeTestMethod(address, null);
    reactor.addProbe(probe);
    stagedReactor = manager.stageReactor();
}
Also used : TestAddress(org.ops4j.pax.exam.TestAddress) TestProbeBuilder(org.ops4j.pax.exam.TestProbeBuilder) ReactorManager(org.ops4j.pax.exam.spi.reactors.ReactorManager) StagedExamReactor(org.ops4j.pax.exam.spi.StagedExamReactor) ExamReactor(org.ops4j.pax.exam.spi.ExamReactor) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 TestAddress (org.ops4j.pax.exam.TestAddress)1 TestProbeBuilder (org.ops4j.pax.exam.TestProbeBuilder)1 ExamReactor (org.ops4j.pax.exam.spi.ExamReactor)1 StagedExamReactor (org.ops4j.pax.exam.spi.StagedExamReactor)1 ReactorManager (org.ops4j.pax.exam.spi.reactors.ReactorManager)1