Skip to content

Commit 35c0351

Browse files
committed
Repair Data SecurityHintsRegistrar Test
Issue gh-16106
1 parent 69cbe12 commit 35c0351

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

data/src/test/java/org/springframework/security/data/aot/hint/AuthorizeReturnObjectDataHintsRegistrarTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ public void registerHintsWhenUsingAuthorizeReturnObjectThenRegisters() {
5151
GenericApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
5252
RuntimeHints hints = new RuntimeHints();
5353
this.registrar.registerHints(hints, context.getBeanFactory());
54-
assertThat(hints.reflection().typeHints().map((hint) -> hint.getType().getName()))
55-
.containsOnly(cglibClassName(MyObject.class), cglibClassName(MySubObject.class));
54+
assertThat(hints.reflection().typeHints().map((hint) -> hint.getType().getName())).containsOnly(
55+
cglibClassName(MyObject.class), cglibClassName(MySubObject.class), MyObject.class.getName(),
56+
MySubObject.class.getName());
5657
}
5758

5859
private static String cglibClassName(Class<?> clazz) {

0 commit comments

Comments
 (0)