Package org.ops4j.pax.exam

Examples of org.ops4j.pax.exam.TestContainerFactory


    public void reactorRunEagerTest() throws Exception {
        reactorRun(new PerClass());
    }

    public void reactorRun(StagedExamReactorFactory strategy) throws Exception {
        TestContainerFactory factory = getFactory();
        Option[] options = new Option[] { regressionDefaults() };

        ExamSystem system = PaxExamRuntime.createTestSystem(options);
        ExamReactor reactor = new DefaultExamReactor(system, factory);
        TestProbeBuilder probe = makeProbe(system);
View Full Code Here


     */
    private TestContainerFactory createsTestContainerFactory(Class<?> testClass) {
        try {
            ExamFactory f = testClass.getAnnotation(ExamFactory.class);

            TestContainerFactory fact = null;
            if (f != null) {
                fact = f.value().newInstance();
                return fact;
            }

View Full Code Here

     *
     * @return discovered test container
     */
    public static TestContainerFactory getTestContainerFactory() {
        sanityCheck();
        TestContainerFactory factory = ServiceLoader.load(TestContainerFactory.class).iterator()
            .next();
        LOG.debug("Found TestContainerFactory: "
            + ((factory != null) ? factory.getClass().getName() : "<NONE>"));
        return factory;
    }
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.TestContainerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.