mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish "Fix error mark position for PatternParseException"
See gh-38944
This commit is contained in:
parent
fccce54d52
commit
47e8f6168f
@ -36,11 +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'.");
|
||||
|
Loading…
Reference in New Issue
Block a user