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

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