doc / ch.tutteli.atrium.creating / ReportingAssertionContainer / AssertionCheckerDecorator / create

create

fun <T> create(assertionVerb: Translatable, maybeSubject: Option<T>, representation: Any?, assertionChecker: AssertionChecker): ReportingAssertionContainer.AssertionCheckerDecorator<T>

Creates an AssertionCheckerDecorator.

Parameters

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

maybeSubject - Either Some wrapping the subject of the assertion or None in case a previous subject change could not be performed. The assertion container will store (check/report) Assertions for the subject of the assertion.

representation - The representation which will be used to represent the subject in reporting.

assertionChecker - The checker which will be used to check Assertions.