org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks Java Examples

The following examples show how to use org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringJUnit4ClassRunner.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * 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());
}
 
Example #2
Source File: SpringClassRule.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Wrap the supplied {@link Statement} with a {@code RunAfterTestClassCallbacks} statement.
 * @see RunAfterTestClassCallbacks
 */
private Statement withAfterTestClassCallbacks(Statement next, TestContextManager testContextManager) {
	return new RunAfterTestClassCallbacks(next, testContextManager);
}
 
Example #3
Source File: SpringJUnit4ClassRunner.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * 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());
}
 
Example #4
Source File: SpringClassRule.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Wrap the supplied {@link Statement} with a {@code RunAfterTestClassCallbacks} statement.
 * @see RunAfterTestClassCallbacks
 */
private Statement withAfterTestClassCallbacks(Statement next, TestContextManager testContextManager) {
	return new RunAfterTestClassCallbacks(next, testContextManager);
}
 
Example #5
Source File: SpringJUnit4ClassRunner.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #6
Source File: SpringClassRule.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Wrap the supplied {@code statement} with a {@code RunAfterTestClassCallbacks} statement.
 * @see RunAfterTestClassCallbacks
 */
private Statement withAfterTestClassCallbacks(Statement statement, TestContextManager testContextManager) {
	return new RunAfterTestClassCallbacks(statement, testContextManager);
}