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

addAssertion

abstract fun addAssertion(assertion: Assertion): SubjectProvider<T> (source)

Adds the given assertion to this holder.

Parameters

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

Exceptions

AssertionError - Might throw an AssertionError in case the Assertion does not hold.

Return
This holder to support a fluent API.