getFailure

open fun getFailure(): AbstractThrowableAssert<out Any, out Throwable>

Obtain the failure that stopped the application context from running, the failure becoming the object under test.

Example:

	assertThat(context).getFailure().containsMessage("missing bean");
	

Return

assertions on the cause of the failure

Throws

if the application context started without a failure