Fix typo in ApplicationContextAssert

See gh-18372
This commit is contained in:
Roland Weisleder 2019-09-27 09:55:30 +02:00 committed by Stephane Nicoll
parent 050460f635
commit 92ae7b21a1
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
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;