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

addAssertionsCreatedBy

abstract fun addAssertionsCreatedBy(assertionCreator: IAssertionPlant<T>.() -> Unit): IAssertionPlant<T>

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 IAssertions are immediately evaluated (see IReportingAssertionPlant).

Return
This plant to support a fluent API.