java.lang.Object
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.SpringRepeat

public class SpringRepeat extends Statement
SpringRepeat is a custom JUnit Statement which adds support for Spring's @Repeat annotation by repeating the test the specified number of times.
Since:
3.0
Author:
Sam Brannen
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Log
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpringRepeat(Statement next, Method testMethod)
    Construct a new SpringRepeat statement for the supplied testMethod, retrieving the configured repeat count from the @Repeat annotation on the supplied method.
    SpringRepeat(Statement next, Method testMethod, int repeat)
    Construct a new SpringRepeat statement for the supplied testMethod and repeat count.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Evaluate the next statement in the execution chain repeatedly, using the specified repeat count.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected static final Log logger
  • Constructor Details

    • SpringRepeat

      public SpringRepeat(Statement next, Method testMethod)
      Construct a new SpringRepeat statement for the supplied testMethod, retrieving the configured repeat count from the @Repeat annotation on the supplied method.
      Parameters:
      next - the next Statement in the execution chain
      testMethod - the current test method
      See Also:
    • SpringRepeat

      public SpringRepeat(Statement next, Method testMethod, int repeat)
      Construct a new SpringRepeat statement for the supplied testMethod and repeat count.
      Parameters:
      next - the next Statement in the execution chain
      testMethod - the current test method
      repeat - the configured repeat count for the current test method
  • Method Details