Revise custom @⁠BootstrapWith use case in test

See https://github.com/spring-projects/spring-boot/issues/15077
See gh-35938
This commit is contained in:
Sam Brannen
2026-03-02 17:07:30 +01:00
parent 63723fadb6
commit 7a420b28df
@@ -217,8 +217,8 @@ class BootstrapUtilsTests {
@Retention(RetentionPolicy.RUNTIME)
@interface BootWithConfigurableBootstrapperInsteadOfFoo {
@AliasFor(annotation = BootstrapWith.class)
Class<? extends TestContextBootstrapper> value() default BarBootstrapper.class;
@AliasFor(annotation = BootstrapWith.class, attribute = "value")
Class<? extends TestContextBootstrapper> bootstrapWith() default BarBootstrapper.class;
}
// Invalid
@@ -255,7 +255,7 @@ class BootstrapUtilsTests {
@BootWithConfigurableBootstrapperInsteadOfFoo
static class ConfigurableAndMetaMetaBootstrapWithAnnotationsClass {}
@BootWithConfigurableBootstrapperInsteadOfFoo(EnigmaBootstrapper.class)
@BootWithConfigurableBootstrapperInsteadOfFoo(bootstrapWith = EnigmaBootstrapper.class)
static class CustomizedConfigurableAndMetaMetaBootstrapWithAnnotationsClass {}
@org.springframework.test.context.web.WebAppConfiguration