spring-framework / org.springframework.test.annotation / TestAnnotationUtils / getRepeatCount

getRepeatCount

open static fun getRepeatCount(method: Method): Int

Get the repeat count configured via the Repeat annotation on the supplied method.

Non-negative configured values will be converted to 1.

Return
the configured repeat count, or 1 if the method is not annotated with @Repeat