Skip to content

Commit

Permalink
Revert "Remove @deprecated for issue junit-team#157"
Browse files Browse the repository at this point in the history
This reverts commit 3cfda47c31c88ab994a7a50ed6b6d75bd6203d47.
  • Loading branch information
coreyjv committed Nov 16, 2012
1 parent 82c6d4b commit c87b2e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/junit/runners/BlockJUnit4ClassRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ protected Statement withPotentialTimeout(FrameworkMethod method,
* Returns a {@link Statement}: run all non-overridden {@code @Before}
* methods on this class and superclasses before running {@code next}; if
* any throws an Exception, stop execution and pass the exception on.
*
* @deprecated Will be private soon: use Rules instead
*/
@Deprecated
protected Statement withBefores(FrameworkMethod method, Object target,
Statement statement) {
List<FrameworkMethod> befores = getTestClass().getAnnotatedMethods(
Expand All @@ -317,7 +320,10 @@ protected Statement withBefores(FrameworkMethod method, Object target,
* After methods are always executed: exceptions thrown by previous steps
* are combined, if necessary, with exceptions from After methods into a
* {@link MultipleFailureException}.
*
* @deprecated Will be private soon: use Rules instead
*/
@Deprecated
protected Statement withAfters(FrameworkMethod method, Object target,
Statement statement) {
List<FrameworkMethod> afters = getTestClass().getAnnotatedMethods(
Expand Down

0 comments on commit c87b2e1

Please sign in to comment.