Package org.springframework.security.test.context.support
-
Interface Summary Interface Description WithSecurityContextFactory<A extends Annotation> An API that works with WithUserTestExcecutionListener for creating aSecurityContext
that is populated in theTestSecurityContextHolder
. -
Class Summary Class Description WithSecurityContextTestExecutionListener ATestExecutionListener
that will find annotations that are annotated withWithSecurityContext
on a test method or at the class level. -
Annotation Types Summary Annotation Type Description WithMockUser When used withWithSecurityContextTestExecutionListener
this annotation can be added to a test method to emulate running with a mocked user.WithSecurityContext An annotation to determine whatSecurityContext
to use.WithUserDetails When used withWithSecurityContextTestExecutionListener
this annotation can be added to a test method to emulate running with aUserDetails
returned from theUserDetailsService
.