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

newDelegatingReportingAssertionContainer

open fun <T> newDelegatingReportingAssertionContainer(originalAssertionHolder: AssertionHolder, maybeSubject: Option<T>): Expect<T> (source)

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 AssertionChecker via newDelegatingAssertionChecker.

Parameters

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

Return
The newly created assertion container.