|
|
|
|
@ -36,7 +36,8 @@ class PatternParseFailureAnalyzerTests {
@@ -36,7 +36,8 @@ class PatternParseFailureAnalyzerTests {
|
|
|
|
|
@Test |
|
|
|
|
void patternParseFailureQuotesPattern() { |
|
|
|
|
FailureAnalysis failureAnalysis = performAnalysis("/spring/**/framework"); |
|
|
|
|
assertThat(failureAnalysis.getDescription()).contains("Invalid mapping pattern detected: /spring/**/framework"); |
|
|
|
|
assertThat(failureAnalysis.getDescription()) |
|
|
|
|
.contains("Invalid mapping pattern detected:\n" + "/spring/**/framework\n" + " ^"); |
|
|
|
|
assertThat(failureAnalysis.getAction()) |
|
|
|
|
.contains("Fix this pattern in your application or switch to the legacy parser" |
|
|
|
|
+ " implementation with 'spring.mvc.pathmatch.matching-strategy=ant_path_matcher'."); |
|
|
|
|
|