Introduce failing test case in AntPathMatcherTests

Issue: SPR-12998
master
Sam Brannen 10 years ago
parent a80d0e87a4
commit c7cdbe126d
  1. 8
      spring-core/src/test/java/org/springframework/util/AntPathMatcherTests.java

@ -24,6 +24,7 @@ import java.util.List;
import java.util.Map;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
@ -34,6 +35,7 @@ import static org.junit.Assert.*;
* @author Juergen Hoeller
* @author Arjen Poutsma
* @author Rossen Stoyanchev
* @author Sam Brannen
*/
public class AntPathMatcherTests {
@ -427,6 +429,12 @@ public class AntPathMatcherTests {
assertEquals("/hotel/booking", pathMatcher.combine("/hotel/", "/booking")); // SPR-12975
}
@Ignore("Disabled until SPR-12998 is resolved")
@Test(expected = IllegalArgumentException.class)
public void combineWithTwoFileExtensionPatterns() {
pathMatcher.combine("/*.html", "/*.txt");
}
@Test
public void patternComparator() {
Comparator<String> comparator = pathMatcher.getPatternComparator("/hotels/new");

Loading…
Cancel
Save