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

newDelegatingReportingAssertionContainer

open fun <T> newDelegatingReportingAssertionContainer(originalAssertionHolder: AssertionHolder, maybeSubject: Option<T>): Expect<T>
Deprecated: Use DelegatingExpect(...) instead which does not use an AssertionChecker; will be removed with 1.0.0

Creates a ReportingAssertionContainer which delegates checking and reporting Assertions to the given originalAssertionHolder.

In Detail: it uses SHOULD_NOT_BE_SHOWN_TO_THE_USER_BUG_TRANSLATABLE as assertion verb and creates an delegating ch.tutteli.atrium.checking.AssertionChecker via newDelegatingAssertionChecker.

Parameters

maybeSubject - Used as ReportingAssertionContainer.maybeSubject and also as representation in reporting.

Return
The newly created assertion container.