Stop using convention-based attribute overrides in tests in spring-test and spring-mvc
See gh-28760
This commit is contained in:
@@ -30,6 +30,7 @@ import org.junit.jupiter.api.BeforeEach;
|
||||
|
||||
import org.springframework.beans.DirectFieldAccessor;
|
||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
import org.springframework.core.annotation.AnnotatedElementUtils;
|
||||
import org.springframework.core.annotation.AnnotationUtils;
|
||||
import org.springframework.core.env.PropertiesPropertySource;
|
||||
@@ -550,8 +551,10 @@ class CrossOriginTests {
|
||||
@CrossOrigin
|
||||
private @interface ComposedCrossOrigin {
|
||||
|
||||
@AliasFor(annotation = CrossOrigin.class)
|
||||
String[] origins() default {};
|
||||
|
||||
@AliasFor(annotation = CrossOrigin.class)
|
||||
String allowCredentials() default "";
|
||||
}
|
||||
|
||||
@@ -563,8 +566,6 @@ class CrossOriginTests {
|
||||
@RequestMapping(path = "/foo", method = RequestMethod.GET)
|
||||
public void foo() {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user