doc / ch.tutteli.atrium.creating / IAssertionPlantWithCommonFields / CommonFields / fail

fail

fun fail(assertion: IAssertion): Unit

Uses assertionChecker to report a failing assertion (see IAssertionChecker.fail).

In case subject is null, then RawString.NULL will be used as representation.

Parameters

assertion - The failing assertion.

Exceptions

AssertionError - Typically throws an AssertionError or another Exception.