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

addAssertionsCreatedBy

abstract fun addAssertionsCreatedBy(assertionCreator: AssertionPlant<T>.() -> Unit): AssertionPlant<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 Assertions are immediately evaluated (see ReportingAssertionPlant).

Return
This plant to support a fluent API.