public class RunBeforeTestClassCallbacks
extends org.junit.runners.model.Statement
RunBeforeTestClassCallbacks
is a custom JUnit Statement
which allows
the Spring TestContext Framework to be plugged into the JUnit execution chain
by calling beforeTestClass()
on the
supplied TestContextManager
.evaluate()
,
RunAfterTestMethodCallbacks
Constructor and Description |
---|
RunBeforeTestClassCallbacks(org.junit.runners.model.Statement next,
TestContextManager testContextManager)
Construct a new
RunBeforeTestClassCallbacks statement. |
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Invoke
TestContextManager.beforeTestClass() and then evaluate
the next Statement in the execution chain (typically an instance
of RunBefores ). |
public RunBeforeTestClassCallbacks(org.junit.runners.model.Statement next, TestContextManager testContextManager)
RunBeforeTestClassCallbacks
statement.next
- the next Statement
in the execution chaintestContextManager
- the TestContextManager upon which to call
beforeTestClass()
public void evaluate() throws Throwable
TestContextManager.beforeTestClass()
and then evaluate
the next Statement
in the execution chain (typically an instance
of RunBefores
).evaluate
in class org.junit.runners.model.Statement
Throwable