doc / ch.tutteli.atrium.creating / CollectingAssertionPlant / addAssertionsCreatedBy

addAssertionsCreatedBy

abstract fun addAssertionsCreatedBy(assertionCreator: AssertionPlant<T>.() -> Unit): CollectingAssertionPlant<T> (source)

Overrides AssertionPlant.addAssertionsCreatedBy

Adds the assertions created by the assertionCreator lambda to this plant.

Parameters

assertionCreator - The receiver function which might create and add assertions to this plant.

Exceptions

AssertionError - Might throw an AssertionError in case Assertions are immediately evaluated (see ReportingAssertionPlant).

Return
This plant to support a fluent API.