Merge branch '5.1.x'

This commit is contained in:
Rossen Stoyanchev
2019-05-23 09:57:29 -04:00
2 changed files with 26 additions and 2 deletions

View File

@@ -679,4 +679,14 @@ public class AntPathMatcherTests {
"/*.html.hotel.*", pathMatcher.combine("/*.html", "hotel.*"));
}
@Test // gh-22959
public void isPattern() {
assertTrue(pathMatcher.isPattern("/test/*"));
assertTrue(pathMatcher.isPattern("/test/**/name"));
assertTrue(pathMatcher.isPattern("/test?"));
assertTrue(pathMatcher.isPattern("/test/{name}"));
assertFalse(pathMatcher.isPattern("/test/name"));
assertFalse(pathMatcher.isPattern("/test/foo{bar"));
}
}