doc / ch.tutteli.atrium.assertions.builders / SubjectBasedOption

SubjectBasedOption

interface SubjectBasedOption (source)

Contract for sub option steps which are based on a defined or absent subject of the assertion.

Types

AbsentOption

interface AbsentOption<T, R>

Sub option step in case the subject is absent

DefinedOption

interface DefinedOption<T, R, AO : SubjectBasedOption.AbsentOption<T, R>>

Sub option step in case the subject is defined.

Companion Object Functions

invoke

operator fun <T, R, PO : SubjectBasedOption.DefinedOption<T, R, *>> invoke(subjectProvider: SubjectProvider<T>, subStep: PO.() -> Pair<() -> R, (T) -> R>, presentOptionFactory: () -> PO): R