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

RunPrepareTestInstanceCallbacks

open class RunPrepareTestInstanceCallbacks : Statement

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

Author
Sam Brannen

Since
4.2

See Also
#evaluate()

Constructors

<init>

RunPrepareTestInstanceCallbacks(next: Statement, testInstance: Any, testContextManager: TestContextManager)

Construct a new RunPrepareTestInstanceCallbacks statement.

Functions

evaluate

open fun evaluate(): Unit

Invoke TestContextManager#prepareTestInstance(Object) and then evaluate the next Statement in the execution chain (typically an instance of RunAfterTestMethodCallbacks).