Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 91d0206

Browse files
committed
Fix security sample tests by adding a missing hint
1 parent 38e7a37 commit 91d0206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-native-configuration/src/main/java/org/springframework/security/test/SpringSecurityTestHints.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
@NativeHint(trigger = org.springframework.security.test.context.support.WithSecurityContext.class,
3333
types = {
3434
@TypeHint(types = org.springframework.security.web.FilterChainProxy.class, access = { TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS}),
35-
@TypeHint(types = org.springframework.security.web.context.SecurityContextPersistenceFilter.class, access = { TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS, TypeAccess.PUBLIC_METHODS}),
35+
@TypeHint(types = org.springframework.security.web.context.SecurityContextPersistenceFilter.class, access = { TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS, TypeAccess.PUBLIC_METHODS}, fields = @FieldHint(name = "repo")),
3636
@TypeHint(types = org.springframework.security.web.csrf.CsrfFilter.class, access = { TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS, TypeAccess.PUBLIC_METHODS}, fields = @FieldHint(name = "tokenRepository", allowWrite = true)),
3737
@TypeHint(types = org.springframework.security.test.context.support.WithSecurityContext.class, access = TypeAccess.PUBLIC_METHODS),
3838
@TypeHint(typeNames = "org.springframework.security.test.context.support.WithMockUserSecurityContextFactory"),

0 commit comments

Comments
 (0)