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

Package org.springframework.test.context.junit4.statements

Types

ProfileValueChecker

open class ProfileValueChecker : Statement

ProfileValueChecker is a custom JUnit Statement that checks whether a test class or test method is enabled in the current environment via Spring's IfProfileValue annotation.

RunAfterTestClassCallbacks

open class RunAfterTestClassCallbacks : Statement

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

NOTE: This class requires JUnit 4.9 or higher.

RunAfterTestExecutionCallbacks

open class RunAfterTestExecutionCallbacks : Statement

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

NOTE: This class requires JUnit 4.9 or higher.

RunAfterTestMethodCallbacks

open class RunAfterTestMethodCallbacks : Statement

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

NOTE: This class requires JUnit 4.9 or higher.

RunBeforeTestClassCallbacks

open class RunBeforeTestClassCallbacks : Statement

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

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.

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.

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.

SpringFailOnTimeout

open class SpringFailOnTimeout : Statement

SpringFailOnTimeout is a custom JUnit Statement which adds support for Spring's org.springframework.test.annotation.Timed annotation by throwing an exception if the next statement in the execution chain takes more than the specified number of milliseconds.

In contrast to JUnit's org.junit.internal.runners.statements.FailOnTimeout, the next statement will be executed in the same thread as the caller and will therefore not be aborted preemptively.

SpringRepeat

open class SpringRepeat : Statement

SpringRepeat is a custom JUnit Statement which adds support for Spring's org.springframework.test.annotation.Repeat annotation by repeating the test the specified number of times.