spring-framework / org.springframework.test.context.junit4.statements / RunBeforeTestExecutionCallbacks

RunBeforeTestExecutionCallbacks

open class RunBeforeTestExecutionCallbacks : Statement

RunBeforeTestExecutionCallbacks is a custom JUnit Statement which allows the Spring TestContext Framework to be plugged into the JUnit 4 execution chain by calling beforeTestExecution() on the supplied TestContextManager.

Author
Sam Brannen

Since
5.0

See Also
#evaluate()RunAfterTestExecutionCallbacks

Constructors

<init>

RunBeforeTestExecutionCallbacks(next: Statement, testInstance: Any, testMethod: Method, testContextManager: TestContextManager)

Construct a new RunBeforeTestExecutionCallbacks statement.

Functions

evaluate

open fun evaluate(): Unit

Invoke TestContextManager#beforeTestExecution(Object, Method) and then evaluate the next Statement in the execution chain (typically an instance of org.junit.internal.runners.statements.InvokeMethod).