diff --git a/org.springframework.core/src/test/java/org/springframework/util/AntPathMatcherTests.java b/org.springframework.core/src/test/java/org/springframework/util/AntPathMatcherTests.java index c6d76d0e40..aec70062d7 100644 --- a/org.springframework.core/src/test/java/org/springframework/util/AntPathMatcherTests.java +++ b/org.springframework.core/src/test/java/org/springframework/util/AntPathMatcherTests.java @@ -343,6 +343,9 @@ public class AntPathMatcherTests { assertEquals(-1, comparator.compare("/hotels/{hotel}", "/hotels/*")); assertEquals(1, comparator.compare("/hotels/*", "/hotels/{hotel}")); + + assertEquals(-1, comparator.compare("/hotels/*","/hotels/*/**")); + assertEquals(1, comparator.compare("/hotels/*/**", "/hotels/*")); } @Test