Skip to content

Commit a296a80

Browse files
committed
Tolerate different quoting of annotation attributes on Java 8 and 9+
Closes gh-13594
1 parent 81377e2 commit a296a80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ public void failureAnalysisForNullBeanByType() {
200200
public void failureAnalysisForUnmatchedQualifier() {
201201
FailureAnalysis analysis = analyzeFailure(
202202
createFailure(QualifiedBeanConfiguration.class));
203-
assertThat(analysis.getDescription()).contains(
204-
"@org.springframework.beans.factory.annotation.Qualifier(value=alpha)");
203+
assertThat(analysis.getDescription()).containsPattern(
204+
"@org.springframework.beans.factory.annotation.Qualifier\\(value=\"*alpha\"*\\)");
205205
}
206206

207207
private void assertDescriptionConstructorMissingType(FailureAnalysis analysis,

0 commit comments

Comments
 (0)