SPR-5251: URI Templates support /**-style paths

This commit is contained in:
Arjen Poutsma
2008-11-18 15:12:28 +00:00
parent b33db73c93
commit 90ef7649c2
3 changed files with 228 additions and 181 deletions

View File

@@ -303,6 +303,9 @@ public class AntPathMatcherTests {
expected.put("hotel", "1");
expected.put("booking", "2");
assertEquals(expected, result);
result = pathMatcher.extractUriTemplateVariables("/**/hotels/**/{hotel}", "/foo/hotels/bar/1");
assertEquals(Collections.singletonMap("hotel", "1"), result);
}