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