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

addAssertion

abstract fun addAssertion(assertion: Assertion): A (source)

Overrides AssertionHolder.addAssertion

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 Assertions are immediately evaluated (see ReportingAssertionPlant).

Return
This plant to support a fluent API.