doc / ch.tutteli.atrium.checking / AssertionChecker / check

check

abstract fun check(assertionVerb: Translatable, representationProvider: () -> Any, assertions: List<Assertion>): Unit (source)

Checks given assertions and reports if one of them fails (does not hold).

Parameters

assertionVerb - The assertion verb which will be used in error reporting.

representationProvider - Provides the representation of the subject for which the assertions have been created.

assertions - The assertions which are checked.

Exceptions

AssertionError - An implementation is allowed to throw AssertionError if an assertion fails.