doc / ch.tutteli.atrium.creating / IBaseAssertionPlant / addAssertion

addAssertion

abstract fun addAssertion(assertion: IAssertion): A

Adds the given assertion to this plant.

Parameters

assertion - The assertion which will be added 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.