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.
T - The type of the subject of the given subjectPlant.
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. |
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). |