Test for SPR-6690

This commit is contained in:
Arjen Poutsma 2010-01-15 11:17:27 +00:00
parent 8d5fc2bf91
commit 0cb9271b95
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/new.*", paths.get(0));
assertEquals("/hotels/{hotel}", paths.get(1)); assertEquals("/hotels/{hotel}", paths.get(1));
paths.clear(); 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();
} }
} }