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