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

addAssertion

abstract fun addAssertion(assertion: IAssertion): IAssertionPlant<T>

Adds the given assertion to the plant.

Parameters

assertion - The assertion which will be added to this plant.

Exceptions

AssertionError - Might throw an AssertionError in case IAssertions are immediately evaluated.

Return
This plant to support a fluent-style API.