doc / ch.tutteli.atrium.creating / SubjectProvider

SubjectProvider

interface SubjectProvider<out T> : AssertionHolder

Provides the subject of an Assertion.

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.

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.

subject

abstract val subject: T

The subject of an Assertion -- deprecated, will be removed with 1.0.0.

Inherited Functions

addAssertion

abstract fun addAssertion(assertion: Assertion): AssertionHolder

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.

BaseAssertionPlant

interface BaseAssertionPlant<out T, out A : BaseAssertionPlant<T, A>> : SubjectProvider<T>

Represents a plant for Assertions and offers methods to addAssertions to this plant.

Expect

interface Expect<T> : SubjectProvider<T>

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