Fix typo in ApplicationContextAssert
See gh-18372
This commit is contained in:
committed by
Stephane Nicoll
parent
050460f635
commit
92ae7b21a1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user