This test loader is inspired by Spring Boot.
Detects defaults for XML configuration and annotated classes.
Beans from XML configuration always override those from annotated classes. @author Sam Brannen @since 4.0.4
415416417418419420421422423424425
+ ") annotations. Only one declaration of a 'timeout' is permitted per test method."; logger.error(msg); throw new IllegalStateException(msg); } else if (springTimeout > 0) { statement = new SpringFailOnTimeout(next, springTimeout); } else if (junitTimeout > 0) { statement = new FailOnTimeout(next, junitTimeout); } else {
396397398399400401402403404405406
334335336337338339340341342343344
491492493494495496497
* @see SpringRepeat */ protected Statement withPotentialRepeat(FrameworkMethod frameworkMethod, Object testInstance, Statement next) { Repeat repeatAnnotation = frameworkMethod.getAnnotation(Repeat.class); int repeat = (repeatAnnotation != null ? repeatAnnotation.value() : 1); return new SpringRepeat(next, frameworkMethod.getMethod(), repeat); }
466467468469470471472
411412413414415416417
* @see SpringRepeat */ protected Statement withPotentialRepeat(FrameworkMethod frameworkMethod, Object testInstance, Statement next) { Repeat repeatAnnotation = AnnotationUtils.getAnnotation(frameworkMethod.getMethod(), Repeat.class); int repeat = (repeatAnnotation != null ? repeatAnnotation.value() : 1); return new SpringRepeat(next, frameworkMethod.getMethod(), repeat); }