Tolerate different quoting of annotation attributes on Java 8 and 9+

Closes gh-13594
pull/14774/merge
Andy Wilkinson 6 years ago
parent 81377e2fd5
commit a296a805c5

@ -200,8 +200,8 @@ public class NoSuchBeanDefinitionFailureAnalyzerTests {
public void failureAnalysisForUnmatchedQualifier() { public void failureAnalysisForUnmatchedQualifier() {
FailureAnalysis analysis = analyzeFailure( FailureAnalysis analysis = analyzeFailure(
createFailure(QualifiedBeanConfiguration.class)); createFailure(QualifiedBeanConfiguration.class));
assertThat(analysis.getDescription()).contains( assertThat(analysis.getDescription()).containsPattern(
"@org.springframework.beans.factory.annotation.Qualifier(value=alpha)"); "@org.springframework.beans.factory.annotation.Qualifier\\(value=\"*alpha\"*\\)");
} }
private void assertDescriptionConstructorMissingType(FailureAnalysis analysis, private void assertDescriptionConstructorMissingType(FailureAnalysis analysis,

Loading…
Cancel
Save