Interface | Description |
---|---|
WithSecurityContextFactory<A extends java.lang.annotation.Annotation> |
An API that works with WithUserTestExcecutionListener for creating a
SecurityContext that is populated in the TestSecurityContextHolder . |
Class | Description |
---|---|
ReactorContextTestExecutionListener |
Sets up the Reactor Context with the Authentication from the TestSecurityContextHolder
and then clears the Reactor Context at the end of the tests.
|
WithSecurityContextTestExecutionListener |
A
TestExecutionListener that will find annotations that are annotated with
WithSecurityContext on a test method or at the class level. |
Enum | Description |
---|---|
TestExecutionEvent |
Represents the events on the methods of
TestExecutionListener |
Annotation Type | Description |
---|---|
WithAnonymousUser |
When used with
WithSecurityContextTestExecutionListener this annotation can be
added to a test method to emulate running with an anonymous user. |
WithMockUser |
When used with
WithSecurityContextTestExecutionListener this annotation can be
added to a test method to emulate running with a mocked user. |
WithSecurityContext |
An annotation to determine what
SecurityContext to use. |
WithUserDetails |
When used with
WithSecurityContextTestExecutionListener this annotation can be
added to a test method to emulate running with a UserDetails returned from the
UserDetailsService . |