doc / ch.tutteli.atrium / IAtriumFactory / newReportingPlant

newReportingPlant

open fun <T : Any> newReportingPlant(assertionVerb: Translatable, subject: T, reporter: Reporter): ReportingAssertionPlant<T>
Deprecated: Use AssertImpl.coreFactory instead; will be removed with 1.0.0

Creates a ReportingAssertionPlant which checks and reports added Assertions.

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 AssertionPlantWithCommonFields.CommonFields.assertionVerb).

subject - The subject for which this plant will create/check Assertions. (see BaseAssertionPlant.subject).

reporter - The reporter which will be used for a newThrowingAssertionChecker.

Return
The newly created assertion plant.

open fun <T : Any> newReportingPlant(assertionVerb: Translatable, subject: T, assertionChecker: AssertionChecker): ReportingAssertionPlant<T>
Deprecated: Use AssertImpl.coreFactory instead; will be removed with 1.0.0

Creates a ReportingAssertionPlant which checks and reports added Assertions.

It uses the given assertionChecker for assertion checking.

Parameters

assertionVerb - The assertion verb which will be used inter alia in reporting (see AssertionPlantWithCommonFields.CommonFields.assertionVerb).

subject - The subject for which this plant will create/check Assertions. (see BaseAssertionPlant.subject).

assertionChecker - The checker which will be used to check Assertions. (see AssertionPlantWithCommonFields.CommonFields.assertionChecker).

Return
The newly created assertion plant.

abstract fun <T : Any> newReportingPlant(commonFields: AssertionPlantWithCommonFields.CommonFields<T>): ReportingAssertionPlant<T>
Deprecated: Use AssertImpl.coreFactory instead; will be removed with 1.0.0

Creates a ReportingAssertionPlant which checks and reports added Assertions.

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

Parameters

commonFields - The commonFields for the new assertion plant.

Return
The newly created assertion plant.