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

DelegatingAssertionChecker

class DelegatingAssertionChecker<out T> : AssertionChecker

An AssertionChecker useful for narrowing assertion functions which have to create an own AssertionPlant but want to add the created assertions to the original plant (the subjectPlant) of the narrowed subject.

Parameters

T - The type of the subject of the given subjectPlant.

Constructors

<init>

DelegatingAssertionChecker(subjectPlant: BaseAssertionPlant<T, *>)

An AssertionChecker useful for narrowing assertion functions which have to create an own AssertionPlant but want to add the created assertions to the original plant of the narrowed AssertionPlant.subject.

Functions

check

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

Adds the given assertions (wrapped into an InvisibleAssertionGroup) to the original plant of the subject (the subjectPlant).