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

AbsentOption

interface AbsentOption<T, R>

Sub option step in case the subject is absent

Parameters

T - The type of the subject of the assertion

R - The resulting type which should be created.

Properties

ifDefined

abstract val ifDefined: (T) -> R

The previously defined factory in case the subject of the assertion is defined.

Functions

ifAbsent

open infix fun ifAbsent(failureHintFactory: () -> R): Pair<() -> R, (T) -> R>

Defines the failure hint factory which should be used if the subject of the assertion is not defined.

Inheritors

FailureHintSubjectAbsentOption

interface FailureHintSubjectAbsentOption<T> : SubjectBasedOption.AbsentOption<T, Assertion>

Sub Option step to define a failure hint in case the subject of the assertion is not defined.

ShowSubjectAbsentOption

interface ShowSubjectAbsentOption<T> : SubjectBasedOption.AbsentOption<T, Boolean>

Sub Option step to define a failure hint in case the subject of the assertion is not defined.