Package org.junit.rules
Class RunRules
- java.lang.Object
-
- org.junit.runners.model.Statement
-
- org.junit.rules.RunRules
-
public class RunRules extends Statement
Runs a collection of rules on a statement.- Since:
- 4.9
-
-
Constructor Summary
Constructors Constructor Description RunRules(Statement base, java.lang.Iterable<TestRule> rules, Description description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static StatementapplyAll(Statement result, java.lang.Iterable<TestRule> rules, Description description)voidevaluate()Run the action, throwing aThrowableif anything goes wrong.
-
-
-
Field Detail
-
statement
private final Statement statement
-
-
Constructor Detail
-
RunRules
public RunRules(Statement base, java.lang.Iterable<TestRule> rules, Description description)
-
-
Method Detail
-
evaluate
public void evaluate() throws java.lang.ThrowableDescription copied from class:StatementRun the action, throwing aThrowableif anything goes wrong.
-
applyAll
private static Statement applyAll(Statement result, java.lang.Iterable<TestRule> rules, Description description)
-
-