abstract fun addAssertionsCreatedBy(assertionCreator: AssertionPlant<T>.() -> Unit): CheckingAssertionPlant<T>
(source)
Overrides AssertionPlant.addAssertionsCreatedBy
Adds the assertions created by the assertionCreator lambda to this plant.
assertionCreator
- The receiver function which might create and add assertions to this plant.
AssertionError
- Might throw an AssertionError in case Assertions are immediately
evaluated (see ReportingAssertionPlant).
Return
This plant to support a fluent API.