Package org.springframework.security.test.context.support
package org.springframework.security.test.context.support
-
ClassDescriptionSets up the Reactor Context with the Authentication from the TestSecurityContextHolder and then clears the Reactor Context at the end of the tests.Represents the events on the methods of
TestExecutionListenerWhen used withWithSecurityContextTestExecutionListenerthis annotation can be added to a test method to emulate running with an anonymous user.When used withWithSecurityContextTestExecutionListenerthis annotation can be added to a test method to emulate running with a mocked user.An annotation to determine whatSecurityContextto use.WithSecurityContextFactory<A extends Annotation>An API that works with WithUserTestExcecutionListener for creating aSecurityContextthat is populated in theTestSecurityContextHolder.ATestExecutionListenerthat will find annotations that are annotated withWithSecurityContexton a test method or at the class level.When used withWithSecurityContextTestExecutionListenerthis annotation can be added to a test method to emulate running with aUserDetailsreturned from theUserDetailsService.