getFailure
Obtain the failure that stopped the application context from running, the failure becoming the object under test.
Example:
assertThat(context).getFailure().containsMessage("missing bean");
Content copied to clipboard
Return
assertions on the cause of the failure
Throws
if the application context started without a failure