mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-16 15:23:31 +00:00
request.setMethod("POST")
This commit is contained in:
parent
3a8aec0c2f
commit
56fad169db
@ -150,6 +150,7 @@ public class UsernamePasswordAuthenticationFilterTests extends TestCase {
|
||||
@Test
|
||||
public void noSessionIsCreatedIfAllowSessionCreationIsFalse() throws Exception {
|
||||
MockHttpServletRequest request = new MockHttpServletRequest();
|
||||
request.setMethod("POST");
|
||||
|
||||
UsernamePasswordAuthenticationFilter filter = new UsernamePasswordAuthenticationFilter();
|
||||
filter.setAllowSessionCreation(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user