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:
parent
c3ab0ef473
commit
7cee45d74d
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue