Class SpringRepeat

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

@Deprecated(since="7.0") public class SpringRepeat extends Statement
Deprecated.
since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter
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 org.apache.commons.logging.Log
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpringRepeat(Statement next, Method testMethod)
    Deprecated.
    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)
    Deprecated.
    Construct a new SpringRepeat statement for the supplied testMethod and repeat count.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    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 org.apache.commons.logging.Log logger
      Deprecated.
  • Constructor Details

    • SpringRepeat

      public SpringRepeat(Statement next, Method testMethod)
      Deprecated.
      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)
      Deprecated.
      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

    • evaluate

      public void evaluate() throws Throwable
      Deprecated.
      Evaluate the next statement in the execution chain repeatedly, using the specified repeat count.
      Specified by:
      evaluate in class Statement
      Throws:
      Throwable