getBeanNames

open fun <T> getBeanNames(type: Class<T>): AbstractObjectArrayAssert<out Any, String>

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"); 

Return

array assertions for the bean names

Parameters

<T>

the bean type

type

the bean type

Throws

if the application context did not start