/** * 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()); }
/** * Wrap the supplied {@code statement} with a {@code RunAfterTestClassCallbacks} statement. * @see RunAfterTestClassCallbacks */ private Statement withAfterTestClassCallbacks(Statement statement, TestContextManager testContextManager) { return new RunAfterTestClassCallbacks(statement, testContextManager); }
/** * 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()); }
/** * 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()); }