You are referencing sample code of how Spring Security Test would possibly work (i.e. It is an incomplete version of the final thing). A concrete implementation is provided in spring-security-test-4.0.0.M1.jar See the sample usage at https://github.com/rwinch/spring-security-test-blog
Thank you very much for prompt answer !
So now we can use org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors
I share this among StackOverflow.
Looking forward for documentation:)
The best documentation at the moment is the sample I referenced and the blog series. I will be adding additional posts next week. If you want to track formal documentation being written, please follow SEC-2572 Any feedback (see blog for how to provide feedback) you have would be very valuable in ensuring the GA release is as good as possible.
NOTE: We are waiting to get feedback on the implementation before spending lots of time documenting in the event we need to rewrite things. It is not looking like we will need to rewrite anything though.
In case of create-session="stateless" created SecurityContextPersistenceFilter initialized by NullSecurityContextRepository which is not keep session, saved before MockMvc do perform. Without "stateless" test give success.
Are there any workaround (possibility to test stateless configuration) ?