doc / ch.tutteli.atrium.creating / AssertionHolder

AssertionHolder

interface AssertionHolder (source)

Represents a general interface which merely defines that assertions can be added to this type via the addAssertion method.

Notice, this interface has its mere purpose to facilitate the transition from Assert to Expect. It might well be that we are going to remove it with 1.0.0 without previous notice. Hence, to be on the safe side, you should use Expect instead.

Functions

addAssertion

abstract fun addAssertion(assertion: Assertion): AssertionHolder

Adds the given assertion to this holder.

Inheritors

SubjectProvider

interface SubjectProvider<out T> : AssertionHolder

Provides the subject of an Assertion.