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…
Reference in New Issue