Java 类org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks 实例源码

项目:spring4-understanding    文件:SpringJUnit4ClassRunner.java   
/**
 * Wrap the {@link Statement} returned by the parent implementation with a
 * {@code RunBeforeTestClassCallbacks} statement, thus preserving the
 * default JUnit functionality while adding support for the Spring TestContext
 * Framework.
 * @see RunBeforeTestClassCallbacks
 */
@Override
protected Statement withBeforeClasses(Statement statement) {
    Statement junitBeforeClasses = super.withBeforeClasses(statement);
    return new RunBeforeTestClassCallbacks(junitBeforeClasses, getTestContextManager());
}
项目:spring4-understanding    文件:SpringClassRule.java   
/**
 * Wrap the supplied {@code statement} with a {@code RunBeforeTestClassCallbacks} statement.
 * @see RunBeforeTestClassCallbacks
 */
private Statement withBeforeTestClassCallbacks(Statement statement, TestContextManager testContextManager) {
    return new RunBeforeTestClassCallbacks(statement, testContextManager);
}
项目:concordion-spring-runner    文件:SpringifiedConcordionRunner.java   
/**
 * Wraps the {@link Statement} returned by the parent implementation with a {@link RunBeforeTestClassCallbacks}
 * statement, thus preserving the default functionality but adding support for the Spring TestContext Framework.
 *
 * @see RunBeforeTestClassCallbacks
 */
@Override
protected Statement withBeforeClasses(Statement statement) {
    Statement junitBeforeClasses = super.withBeforeClasses(statement);
    return new RunBeforeTestClassCallbacks(junitBeforeClasses, getTestContextManager());
}
项目:class-guard    文件:SpringJUnit4ClassRunner.java   
/**
 * Wraps the {@link Statement} returned by the parent implementation with a
 * {@link RunBeforeTestClassCallbacks} statement, thus preserving the
 * default functionality but adding support for the Spring TestContext
 * Framework.
 * @see RunBeforeTestClassCallbacks
 */
@Override
protected Statement withBeforeClasses(Statement statement) {
    Statement junitBeforeClasses = super.withBeforeClasses(statement);
    return new RunBeforeTestClassCallbacks(junitBeforeClasses, getTestContextManager());
}