Add runtime hints for CSS resource

This commit is contained in:
Daniel Garnier-Moiroux
2024-09-03 12:14:08 +02:00
committed by Rob Winch
parent 2405a5b680
commit 98975a9b83
2 changed files with 13 additions and 0 deletions

View File

@@ -62,4 +62,10 @@ class WebMvcSecurityRuntimeHintsTests {
.withMemberCategories(MemberCategory.INVOKE_DECLARED_METHODS)).accepts(this.hints);
}
@Test
void cssHasHints() {
assertThat(RuntimeHintsPredicates.resource().forResource("org/springframework/security/default-ui.css"))
.accepts(this.hints);
}
}