瀏覽代碼

request.setMethod("POST")

Rob Winch 9 年之前
父節點
當前提交
56fad169db

+ 1 - 0
web/src/test/java/org/springframework/security/web/authentication/UsernamePasswordAuthenticationFilterTests.java

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