Skip to content

Explicit failure if multiple @BootstrapWith annotations are used on the same test [SPR-12602] #17203

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits e85e976

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions