Class TestAnnotationUtils
java.lang.Object
org.springframework.test.annotation.TestAnnotationUtils
Collection of utility methods for working with Spring's core testing annotations.
- Since:
- 4.2
- Author:
- Sam Brannen
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intgetRepeatCount(Method method) Get the repeat count configured via the@Repeatannotation on the suppliedmethod.static longgetTimeout(Method method) 
- 
Constructor Details- 
TestAnnotationUtilspublic TestAnnotationUtils()
 
- 
- 
Method Details- 
getTimeoutGet thetimeoutconfigured via the@Timedannotation on the suppliedmethod.Negative configured values will be converted to 0.- Returns:
- the configured timeout, or 0if the method is not annotated with@Timed
 
- 
getRepeatCountGet the repeat count configured via the@Repeatannotation on the suppliedmethod.Non-negative configured values will be converted to 1.- Returns:
- the configured repeat count, or 1if the method is not annotated with@Repeat
 
 
-