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

check

abstract fun check(assertionVerb: Translatable, representation: 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 reporting.

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

assertions - The assertions which shall be checked.

Exceptions

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

open fun check(assertionVerb: Translatable, representationProvider: () -> Any, assertions: List<Assertion>): Unit (source)
Deprecated: Use the overload which expects a representation instead of a representationProvider, use LazyRepresentation if needed; will be removed with 1.0.0