Skip to content

Commit 92ae7b2

Browse files
rweisledersnicoll
authored andcommitted
Fix typo in ApplicationContextAssert
See gh-18372
1 parent 050460f commit 92ae7b2

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)