public class RunBeforeTestClassCallbacks
extends org.junit.runners.model.Statement
RunBeforeTestClassCallbacks is a custom JUnit 4.5+
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)
Constructs a new
RunBeforeTestClassCallbacks statement. |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate()
Calls
TestContextManager.beforeTestClass() and then invokes 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 invokes the
next Statement in the execution chain (typically an instance of
RunBefores).evaluate in class org.junit.runners.model.StatementThrowable