فهرست منبع

Remove failing test due to HttpMethod changes

Closes gh-10569
Steve Riesenberg 3 سال پیش
والد
کامیت
c6a27d44e5

+ 0 - 7
web/src/test/java/org/springframework/security/web/access/intercept/DefaultFilterInvocationSecurityMetadataSourceTests.java

@@ -20,7 +20,6 @@ import java.util.Collection;
 import java.util.LinkedHashMap;
 
 import jakarta.servlet.FilterChain;
-
 import org.junit.jupiter.api.Test;
 
 import org.springframework.mock.web.MockHttpServletRequest;
@@ -32,7 +31,6 @@ import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
 import org.springframework.security.web.util.matcher.RequestMatcher;
 
 import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
 import static org.mockito.Mockito.mock;
 
 /**
@@ -88,11 +86,6 @@ public class DefaultFilterInvocationSecurityMetadataSourceTests {
 								// sign).isEqualTo(def)
 	}
 
-	@Test
-	public void unknownHttpMethodIsRejected() {
-		assertThatIllegalArgumentException().isThrownBy(() -> createFids("/someAdminPage.html**", "UNKNOWN"));
-	}
-
 	@Test
 	public void httpMethodLookupSucceeds() {
 		createFids("/somepage**", "GET");