getBeanNames
Obtain the beans names of the given type from the application context, the names becoming the object array under test.
Example:
assertThat(context).getBeanNames(Foo.class).containsOnly("fooBean");
Content copied to clipboard
Return
array assertions for the bean names
Parameters
<T>
the bean type
type
the bean type
Throws
if the application context did not start