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

RunBeforeTestMethodCallbacks

open class RunBeforeTestMethodCallbacks : Statement

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

Author
Sam Brannen

Since
3.0

See Also
#evaluate()RunAfterTestMethodCallbacks

Constructors

<init>

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

Construct a new RunBeforeTestMethodCallbacks statement.

Functions

evaluate

open fun evaluate(): Unit

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