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

TestAnnotationUtils

open class TestAnnotationUtils

Collection of utility methods for working with Spring's core testing annotations.

Author
Sam Brannen

Since
4.2

Constructors

<init>

TestAnnotationUtils()

Collection of utility methods for working with Spring's core testing annotations.

Functions

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.

getTimeout

open static fun getTimeout(method: Method): Long

Get the timeout configured via the Timed annotation on the supplied method.

Negative configured values will be converted to 0.