doc / ch.tutteli.atrium / IAtriumFactory / newReportingPlantNullable

newReportingPlantNullable

open fun <T> newReportingPlantNullable(assertionVerb: ITranslatable, subject: T, reporter: IReporter, nullRepresentation: Any = RawString.NULL): IReportingAssertionPlantNullable<T>

Creates an IReportingAssertionPlantNullable which is the entry point for assertions about nullable types.

It creates a newThrowingAssertionChecker based on the given reporter for assertion checking.

Parameters

assertionVerb - The assertion verb which will be used inter alia in reporting (see IAssertionPlantWithCommonFields.CommonFields.assertionVerb). subject - The subject for which this plant will create/check IAssertions. (see IAssertionPlantWithCommonFields.CommonFields.subject). reporter - The reporter which will be use for a newThrowingAssertionChecker.

Return
The newly created assertion plant.

open fun <T> newReportingPlantNullable(assertionVerb: ITranslatable, subject: T, assertionChecker: IAssertionChecker, nullRepresentation: Any): IReportingAssertionPlantNullable<T>

Creates an IReportingAssertionPlantNullable which is the entry point for assertions about nullable types.

It uses the given assertionChecker for assertion checking.

Parameters

assertionVerb - The assertion verb which will be used inter alia in reporting (see IAssertionPlantWithCommonFields.CommonFields.assertionVerb). subject - The subject for which this plant will create/check IAssertions. (see IAssertionPlantWithCommonFields.CommonFields.subject). assertionChecker - The checker which will be used to check IAssertions. (see IAssertionPlantWithCommonFields.CommonFields.assertionChecker).

Return
The newly created assertion plant.

abstract fun <T> newReportingPlantNullable(commonFields: CommonFields<T>): IReportingAssertionPlantNullable<T>

Creates an IReportingAssertionPlantNullable which is the entry point for assertions about nullable types.

It uses the IAssertionPlantWithCommonFields.CommonFields.assertionChecker of the given commonFields for assertion checking.

Parameters

commonFields - The commonFields for the new assertion plant.

Return
The newly created assertion plant.