atrium-core-impl-robstoll-lib / ch.tutteli.atrium.checking / ThrowingAssertionChecker

ThrowingAssertionChecker

class ThrowingAssertionChecker : AssertionChecker

An AssertionChecker which throws AssertionErrors in case an assertion fails and uses the given reporter for reporting.

Constructors

<init>

ThrowingAssertionChecker(reporter: Reporter)

An AssertionChecker which throws AssertionErrors in case an assertion fails and uses the given reporter for reporting.

Functions

check

fun check(assertionVerb: Translatable, subject: Any, assertions: List<Assertion>): Unit

Creates an AssertionGroup -- based on the given assertionVerb, subject and assertions -- formats it for reporting using the reporter and checks whether it holds.