Remove failing test due to HttpMethod changes
Closes gh-10569
This commit is contained in:
parent
82426e20e1
commit
c6a27d44e5
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue