From 721f2ca63ec0867eaaac7a63c3f071f3ef0cf91f Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Fri, 13 Feb 2009 10:32:22 +0000 Subject: [PATCH] Test for SPR-5362 --- .../java/org/springframework/util/AntPathMatcherTests.java | 3 +++ 1 file changed, 3 insertions(+) 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