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

newReportingAssertionContainer

open fun <T> newReportingAssertionContainer(assertionVerb: Translatable, maybeSubject: Option<T>, assertionChecker: AssertionChecker): ReportingAssertionContainer<T>

Creates a ReportingAssertionContainer which checks and reports added Assertions.

It uses the given assertionChecker for assertion checking, uses maybeSubject as ReportingAssertionContainer.maybeSubject and also as representation in reporting.

Parameters

assertionVerb - The assertion verb which will be used inter alia in reporting.

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

assertionChecker - The checker which will be used to check Assertions. (see ReportingAssertionContainer.AssertionCheckerDecorator.assertionChecker).

Return
The newly created assertion container.

abstract fun <T> newReportingAssertionContainer(assertionCheckerDecorator: ReportingAssertionContainer.AssertionCheckerDecorator<T>): ReportingAssertionContainer<T>

Creates a ReportingAssertionContainer which checks and reports added Assertions.

It uses the given assertionCheckerDecorator for assertion checking.

Parameters

assertionCheckerDecorator - The ReportingAssertionContainer.AssertionCheckerDecorator which will be used for assertion checking.

Return
The newly created assertion container.