Browse Source

Revise custom @⁠BootstrapWith use case in test

See https://github.com/spring-projects/spring-boot/issues/15077
See gh-35938
pull/36409/head
Sam Brannen 2 weeks ago
parent
commit
7a420b28df
  1. 6
      spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java

6
spring-test/src/test/java/org/springframework/test/context/BootstrapUtilsTests.java

@ -217,8 +217,8 @@ class BootstrapUtilsTests {
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@interface BootWithConfigurableBootstrapperInsteadOfFoo { @interface BootWithConfigurableBootstrapperInsteadOfFoo {
@AliasFor(annotation = BootstrapWith.class) @AliasFor(annotation = BootstrapWith.class, attribute = "value")
Class<? extends TestContextBootstrapper> value() default BarBootstrapper.class; Class<? extends TestContextBootstrapper> bootstrapWith() default BarBootstrapper.class;
} }
// Invalid // Invalid
@ -255,7 +255,7 @@ class BootstrapUtilsTests {
@BootWithConfigurableBootstrapperInsteadOfFoo @BootWithConfigurableBootstrapperInsteadOfFoo
static class ConfigurableAndMetaMetaBootstrapWithAnnotationsClass {} static class ConfigurableAndMetaMetaBootstrapWithAnnotationsClass {}
@BootWithConfigurableBootstrapperInsteadOfFoo(EnigmaBootstrapper.class) @BootWithConfigurableBootstrapperInsteadOfFoo(bootstrapWith = EnigmaBootstrapper.class)
static class CustomizedConfigurableAndMetaMetaBootstrapWithAnnotationsClass {} static class CustomizedConfigurableAndMetaMetaBootstrapWithAnnotationsClass {}
@org.springframework.test.context.web.WebAppConfiguration @org.springframework.test.context.web.WebAppConfiguration

Loading…
Cancel
Save