Commit c605419f authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '2.1.x'

Closes gh-18379
parents f78c9574 4001809a
...@@ -175,7 +175,7 @@ public class ApplicationContextAssert<C extends ApplicationContext> ...@@ -175,7 +175,7 @@ public class ApplicationContextAssert<C extends ApplicationContext>
String[] names = scope.getBeanNamesForType(getApplicationContext(), type); String[] names = scope.getBeanNamesForType(getApplicationContext(), type);
if (names.length > 0) { if (names.length > 0) {
throwAssertionError(new BasicErrorMessageFactory( 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)); getApplicationContext(), type, names));
} }
return this; return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment