Merge branch '2.1.x'

Closes gh-18379
This commit is contained in:
Stephane Nicoll 2019-09-27 16:34:59 +02:00
commit c605419f19
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;