doc / ch.tutteli.atrium.creating / SubjectProvider

SubjectProvider

interface SubjectProvider<out T> (source)
Deprecated: Will be removed with 0.17.0 without replacement, switch to Expect or AssertionContainer

Provides the subject of an Assertion.

Notice, this interface had its mere purpose to facilitate the transition from Assert to Expect -- Assert was removed in 0.16.0 and thus this interface will be removed with 0.17.0.

Properties

maybeSubject

abstract val maybeSubject: Option<T>

Either Some wrapping the subject of an Assertion or None in case a previous subject change could not be carried out.

Functions

addAssertion

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

Adds the given assertion to this holder.

Inheritors

AssertionContainer

interface AssertionContainer<T> : SubjectProvider<T>

Represents the extension point of the logic level for subjects of type T.

Expect

interface Expect<T> : SubjectProvider<T>

Represents the extension point for Assertion functions and sophisticated builders for subjects of type T.