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

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.

Author
Sam Brannen

Since
3.0

See Also
#evaluate()

Constructors

<init>

SpringRepeat(next: Statement, testMethod: Method)

Construct a new SpringRepeat statement for the supplied testMethod, retrieving the configured repeat count from the @Repeat annotation on the supplied method.

SpringRepeat(next: Statement, testMethod: Method, repeat: Int)

Construct a new SpringRepeat statement for the supplied testMethod and repeat count.

Functions

evaluate

open fun evaluate(): Unit

Evaluate the next Statement in the execution chain repeatedly, using the specified repeat count.