Repair Data SecurityHintsRegistrar Test

Issue gh-16106
This commit is contained in:
Josh Cummings 2024-11-15 15:22:46 -07:00
parent 69cbe12a7b
commit 35c0351000
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 3 additions and 2 deletions

View File

@ -51,8 +51,9 @@ public class AuthorizeReturnObjectDataHintsRegistrarTests {
GenericApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
RuntimeHints hints = new RuntimeHints();
this.registrar.registerHints(hints, context.getBeanFactory());
assertThat(hints.reflection().typeHints().map((hint) -> hint.getType().getName()))
.containsOnly(cglibClassName(MyObject.class), cglibClassName(MySubObject.class));
assertThat(hints.reflection().typeHints().map((hint) -> hint.getType().getName())).containsOnly(
cglibClassName(MyObject.class), cglibClassName(MySubObject.class), MyObject.class.getName(),
MySubObject.class.getName());
}
private static String cglibClassName(Class<?> clazz) {