hasBean

Verifies that the application context contains a bean with the given name.

Example:

	assertThat(context).hasBean("fooBean"); 

Return

this assertion object.

Parameters

name

the name of the bean

Throws

if the application context does not contain a bean with thegiven name