mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-14 06:13:30 +00:00
Repair Data SecurityHintsRegistrar Test
Issue gh-16106
This commit is contained in:
parent
69cbe12a7b
commit
35c0351000
@ -51,8 +51,9 @@ public class AuthorizeReturnObjectDataHintsRegistrarTests {
|
|||||||
GenericApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
|
GenericApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
|
||||||
RuntimeHints hints = new RuntimeHints();
|
RuntimeHints hints = new RuntimeHints();
|
||||||
this.registrar.registerHints(hints, context.getBeanFactory());
|
this.registrar.registerHints(hints, context.getBeanFactory());
|
||||||
assertThat(hints.reflection().typeHints().map((hint) -> hint.getType().getName()))
|
assertThat(hints.reflection().typeHints().map((hint) -> hint.getType().getName())).containsOnly(
|
||||||
.containsOnly(cglibClassName(MyObject.class), cglibClassName(MySubObject.class));
|
cglibClassName(MyObject.class), cglibClassName(MySubObject.class), MyObject.class.getName(),
|
||||||
|
MySubObject.class.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String cglibClassName(Class<?> clazz) {
|
private static String cglibClassName(Class<?> clazz) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user