Skip to content

Commit 4001809

Browse files
committed
Merge pull request #18372 from rweisleder
* pr/18372: Fix typo in ApplicationContextAssert Closes gh-18372
2 parents 050460f + 92ae7b2 commit 4001809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/assertj/ApplicationContextAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public ApplicationContextAssert<C> doesNotHaveBean(Class<?> type, Scope scope) {
175175
String[] names = scope.getBeanNamesForType(getApplicationContext(), type);
176176
if (names.length > 0) {
177177
throwAssertionError(new BasicErrorMessageFactory(
178-
"%nExpecting:%n <%s>%nnot to have a beans of type:%n <%s>%nbut found:%n <%s>",
178+
"%nExpecting:%n <%s>%nnot to have any beans of type:%n <%s>%nbut found:%n <%s>",
179179
getApplicationContext(), type, names));
180180
}
181181
return this;

0 commit comments

Comments
 (0)