From f7a6d46de1dec1a0bb8c308c9ff702db15679f78 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 git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@629 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../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 c6d76d0e404..aec70062d71 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