Examples of InjectStatement


Examples of org.apache.openejb.junit.jee.statement.InjectStatement

            startingStatement = new StartingStatement(new Statement() {
                @Override
                // this class avoids a dependency loop issue, we have it actually but that's just to make a nicer API
                public void evaluate() throws Throwable {
                    // don't use testClass since it can be another instance that the test one
                    new InjectStatement(base, test.getClass(), test, startingStatement).evaluate();
                }
            }, description.getTestClass());
        }
        return new ShutingDownStatement(startingStatement, startingStatement);
    }
View Full Code Here

Examples of org.apache.openejb.junit.jee.statement.InjectStatement

    }

    // inject in test class or a class of org.apache.openejb.OpenEjbContainer.Provider.OPENEJB_ADDITIONNAL_CALLERS_KEY list
    public void inject(final Object target) {
        try { // reuse this logic to get @TestResource for free
            new InjectStatement(null, target.getClass(), target, startingStatement).evaluate();
        } catch (final Throwable throwable) {
            throw new OpenEJBRuntimeException(throwable.getMessage(), throwable);
        }
    }
View Full Code Here

Examples of org.apache.openejb.junit.jee.statement.InjectStatement

        this.startingStatement = startingStatement;
    }

    @Override
    public Statement apply(final Statement base, final Description description) {
        return new InjectStatement(base, test.getClass(), test, startingStatement);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.