Closed
Description
Phil Webb opened SPR-12602 and commented
BootstrapUtils.resolveTestContextBootstrapper
currently finds the first @BootstrapWith
annotation to create the bootstrapper. If the user has accidentally included more than one @BootstrapWith
annotation (via meta-annotated annotations) it's seemingly arbitrary which is used.
It would be better to throw an explicit error.
Affects: 4.1 GA
Issue Links:
- Relax explicit TestContextBootstrapper resolution [SPR-17006] #21544 Relax explicit TestContextBootstrapper resolution
- Throw exception if multiple meta-annotations are found by AnnotationUtils [SPR-13015] #17606 Throw exception if multiple meta-annotations are found by AnnotationUtils
Referenced from: commits e85e976