request.setMethod("POST")

This commit is contained in:
Rob Winch 2015-12-21 14:51:33 -06:00
parent 3a8aec0c2f
commit 56fad169db
1 changed files with 1 additions and 0 deletions

View File

@ -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);