类 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.
    从以下版本开始:
    3.0
    作者:
    Sam Brannen
    另请参阅:
    evaluate()
    • 字段详细资料

    • 构造器详细资料

      • 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.
        参数:
        next - the next Statement in the execution chain
        testMethod - the current test method
        另请参阅:
        TestAnnotationUtils.getRepeatCount(Method)
      • SpringRepeat

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