public abstract class CompositeTestRule extends Object implements org.junit.rules.TestRule
TestRule that is composed of other TestRules.| Constructor and Description |
|---|
CompositeTestRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Takes all the rules in
testRules() and applies them to this Test Rule. |
protected void |
before() |
protected abstract List<org.junit.rules.TestRule> |
testRules() |
protected abstract List<org.junit.rules.TestRule> testRules()
public final org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
testRules() and applies them to this Test Rule.
This is essential because the composite rule may depend on these rules being executed.apply in interface org.junit.rules.TestRuleprotected void after()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.