diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java index 10f6f41c09..8341bb8a04 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java @@ -174,8 +174,8 @@ public class NoSuchBeanDefinitionFailureAnalyzerTests { public void failureAnalysisForUnmatchedQualifier() { FailureAnalysis analysis = analyzeFailure( createFailure(QualifiedBeanConfiguration.class)); - assertThat(analysis.getDescription()).contains( - "@org.springframework.beans.factory.annotation.Qualifier(value=alpha)"); + assertThat(analysis.getDescription()).containsPattern( + "@org.springframework.beans.factory.annotation.Qualifier\\(value=\"*alpha\"*\\)"); } private void assertDescriptionConstructorMissingType(FailureAnalysis analysis,