mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user