From 7a420b28df3aaa91f775d8df172bf472d65ee205 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Mon, 2 Mar 2026 17:07:30 +0100 Subject: [PATCH] =?UTF-8?q?Revise=20custom=20@=E2=81=A0BootstrapWith=20use?= =?UTF-8?q?=20case=20in=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/spring-projects/spring-boot/issues/15077 See gh-35938 --- .../springframework/test/context/BootstrapUtilsTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java b/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java index f705ddad545..6d9077ec6ae 100644 --- a/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java @@ -217,8 +217,8 @@ class BootstrapUtilsTests { @Retention(RetentionPolicy.RUNTIME) @interface BootWithConfigurableBootstrapperInsteadOfFoo { - @AliasFor(annotation = BootstrapWith.class) - Class value() default BarBootstrapper.class; + @AliasFor(annotation = BootstrapWith.class, attribute = "value") + Class 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