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