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 Statement
applyAll(Statement result, java.lang.Iterable<TestRule> rules, Description description)
void
evaluate()
Run the action, throwing aThrowable
if 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.Throwable
Description copied from class:Statement
Run the action, throwing aThrowable
if anything goes wrong.
-
applyAll
private static Statement applyAll(Statement result, java.lang.Iterable<TestRule> rules, Description description)
-
-