doc / ch.tutteli.atrium.checking / IAssertionChecker / fail

fail

abstract fun fail(assertionVerb: ITranslatable, subject: Any, assertion: IAssertion): Unit

Reports that the given assertion fails (does not hold).

Parameters

assertionVerb - The assertion verb which will be used in reporting. subject - The subject for which the assertion has been created. assertion - The assertion which fails.

Exceptions

AssertionError - An implementation might throw AssertionError. IllegalArgumentException - in case the assertion holds.