doc / ch.tutteli.atrium.core / CoreFactoryCommon / newDelegatingAssertionChecker

newDelegatingAssertionChecker

abstract fun newDelegatingAssertionChecker(originalAssertionHolder: AssertionHolder): AssertionChecker
Deprecated: Do no longer use AssertionCheckers, use a specialised Expect instead; e.g. DelegatingExpect, FeatureExpect; will be removed with 1.0.0

Creates an ch.tutteli.atrium.checking.AssertionChecker which delegates the checking of Assertions to the given originalAssertionHolder by adding (see AssertionHolder.addAssertion) the assertions to the given originalAssertionHolder.

Parameters

originalAssertionHolder - The assertion container to which the Assertions will be added.

Return
The newly created assertion checker.

abstract fun <T> newDelegatingAssertionChecker(subjectPlant: BaseAssertionPlant<T, *>): AssertionChecker
Deprecated: Do no longer use AssertionCheckers, use a specialised Expect instead; e.g. DelegatingExpect, FeatureExpect; will be removed with 1.0.0

Creates an ch.tutteli.atrium.checking.AssertionChecker which delegates the checking of Assertions to the given subjectPlant by adding (see AssertionPlant.addAssertion) the assertions to the given subjectPlant.

Parameters

subjectPlant - The assertion plant to which the Assertions will be added.

Return
The newly created assertion checker.