public abstract class AbstractTestRule<C,M>
extends Object
implements org.junit.rules.TestRule
Constructor and Description |
---|
AbstractTestRule() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
afterClass(org.junit.runner.Description description,
C c) |
protected abstract void |
afterMethod(org.junit.runner.Description description,
M m,
Object target) |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
protected abstract C |
beforeClass(org.junit.runner.Description description) |
protected abstract M |
beforeMethod(org.junit.runner.Description description,
Object target) |
protected org.junit.runners.model.Statement |
createClassStatement(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
protected org.junit.runners.model.Statement |
createMethodStatement(org.junit.runners.model.Statement statement,
org.junit.runner.Description description) |
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
protected abstract void afterClass(org.junit.runner.Description description, C c) throws Throwable
Throwable
protected abstract void afterMethod(org.junit.runner.Description description, M m, Object target) throws Throwable
Throwable
protected abstract C beforeClass(org.junit.runner.Description description) throws Throwable
Throwable
protected abstract M beforeMethod(org.junit.runner.Description description, Object target) throws Throwable
Throwable
protected org.junit.runners.model.Statement createClassStatement(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
protected org.junit.runners.model.Statement createMethodStatement(org.junit.runners.model.Statement statement, org.junit.runner.Description description)