public class

RunBeforeTestMethodCallbacks

extends Statement
java.lang.Object
   ↳ Statement
     ↳ org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks

Class Overview

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

Summary

Public Constructors
RunBeforeTestMethodCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)
Constructs a new RunBeforeTestMethodCallbacks statement.
Public Methods
void evaluate()
Calls beforeTestMethod(Object, Method) and then invokes the next Statement in the execution chain (typically an instance of org.junit.internal.runners.statements.RunBefores RunBefores).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RunBeforeTestMethodCallbacks (Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)

Constructs a new RunBeforeTestMethodCallbacks statement.

Parameters
next the next Statement in the execution chain
testInstance the current test instance (never null)
testMethod the test method which is about to be executed on the test instance
testContextManager the TestContextManager upon which to call beforeTestMethod()

Public Methods

public void evaluate ()

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

Throws
Throwable