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

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.

Return
the configured timeout, or 0 if the method is not annotated with @Timed