diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/ApplicationContextAssert.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/ApplicationContextAssert.java index 48c41c9964..8d226b04ac 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/ApplicationContextAssert.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/ApplicationContextAssert.java @@ -175,7 +175,7 @@ public class ApplicationContextAssert String[] names = scope.getBeanNamesForType(getApplicationContext(), type); if (names.length > 0) { throwAssertionError(new BasicErrorMessageFactory( - "%nExpecting:%n <%s>%nnot to have a beans of type:%n <%s>%nbut found:%n <%s>", + "%nExpecting:%n <%s>%nnot to have any beans of type:%n <%s>%nbut found:%n <%s>", getApplicationContext(), type, names)); } return this;