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

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@295 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma
2008-11-18 15:12:28 +00:00
parent 011409a7ab
commit 9a7a5e5b60
3 changed files with 228 additions and 181 deletions
@@ -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);
}