Support "*" mapping in MockMvc filter registration
Prior to this commit, configuring a Servlet filter in MockMvc with a defined mapping would only consider "/*" as a catch-all pattern. This commit relaxes this rule by also accepting "*" mappings. Closes gh-28041
This commit is contained in:
committed by
Brian Clozel
parent
31a62ff8ba
commit
4bf995fa8b
@@ -95,7 +95,7 @@ public class MockMvcFilterDecoratorTests {
|
||||
|
||||
@Test
|
||||
public void matchPathMappingAll() throws Exception {
|
||||
assertFilterInvoked("/test", "/*");
|
||||
assertFilterInvoked("/test", "*");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user