From 92ae7b21a19ca0895667fe928a36b3ebd7105deb Mon Sep 17 00:00:00 2001 From: Roland Weisleder Date: Fri, 27 Sep 2019 09:55:30 +0200 Subject: [PATCH] Fix typo in ApplicationContextAssert See gh-18372 --- .../boot/test/context/assertj/ApplicationContextAssert.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;