public class

SpringRepeat

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

Class Overview

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

See Also

Summary

Fields
protected static final Log logger
Public Constructors
SpringRepeat(Statement next, Method testMethod, int repeat)
Constructs a new SpringRepeat statement.
Public Methods
void evaluate()
Invokes the next Statement statement in the execution chain for the specified repeat count.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static final Log logger

Public Constructors

public SpringRepeat (Statement next, Method testMethod, int repeat)

Constructs a new SpringRepeat statement.

Parameters
next the next Statement in the execution chain
testMethod the current test method
repeat the configured repeat count for the current test method
See Also
  • Repeat#value()

Public Methods

public void evaluate ()

Invokes the next Statement statement in the execution chain for the specified repeat count.

Throws
Throwable