@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
@TestExecutionListeners(inheritListeners=false,
listeners={WithSecurityContextTestExecutionListener.class,ReactorContextTestExecutionListener.class})
public @interface SecurityTestExecutionListeners
There are many times a user may want to use Spring Security's test support
(i.e. WithMockUser) but have no need for any other
TestExecutionListeners
(i.e. no need to setup an
ApplicationContext
). This annotation is a meta annotation that only
enables Spring Security's TestExecutionListeners
.
- Since:
- 4.0.2
- See Also:
WithSecurityContextTestExecutionListener
,
ReactorContextTestExecutionListener