Test for SPR-6690

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2815 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Arjen Poutsma 2010-01-15 11:17:27 +00:00
parent c3ab0ef473
commit 7cee45d74d
1 changed files with 10 additions and 0 deletions

View File

@ -488,6 +488,16 @@ public class AntPathMatcherTests {
assertEquals("/hotels/new.*", paths.get(0));
assertEquals("/hotels/{hotel}", paths.get(1));
paths.clear();
comparator = pathMatcher.getPatternComparator("/web/endUser/action/login.html");
paths.add("/**/login.*");
paths.add("/**/endUser/action/login.*");
Collections.sort(paths, comparator);
assertEquals("/**/endUser/action/login.*", paths.get(0));
assertEquals("/**/login.*", paths.get(1));
paths.clear();
}
}