public class RunBeforeTestClassCallbacks
extends 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
Modifier and Type | Field and Description |
---|---|
private Statement |
next |
private TestContextManager |
testContextManager |
Constructor and Description |
---|
RunBeforeTestClassCallbacks(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 ). |
private final Statement next
private final TestContextManager testContextManager
public RunBeforeTestClassCallbacks(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 java.lang.Throwable
TestContextManager.beforeTestClass()
and then invokes the
next Statement
in the execution chain (typically an instance of
RunBefores
).java.lang.Throwable