hasBean
Verifies that the application context contains a bean with the given name.
Example:
assertThat(context).hasBean("fooBean"); Content copied to clipboard
Return
this assertion object.
Parameters
name
the name of the bean
Throws
if the application context does not contain a bean with thegiven name