| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MethodRule
A MethodRule is an alteration in how a test method is run and reported.
 Multiple MethodRules can be applied to a test method. The
 Statement that executes the method is passed to each annotated
 Rule in turn, and each may return a substitute or modified
 Statement, which is passed to the next Rule, if any. For
 an example of how this can be useful, see TestWatchman.
 
Note that MethodRule has been replaced by TestRule,
 which has the added benefit of supporting class rules.
| Method Summary | |
|---|---|
 Statement | 
apply(Statement base,
           FrameworkMethod method,
           Object target)
Modifies the method-running Statement to implement an additional
 test-running rule. | 
| Method Detail | 
|---|
Statement apply(Statement base,
                FrameworkMethod method,
                Object target)
Statement to implement an additional
 test-running rule.
base - The Statement to be modifiedmethod - The method to be runtarget - The object on which the method will be run.
base,
         a wrapper around base, or a completely new Statement.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||