doc / ch.tutteli.atrium.assertions.builders / DescriptiveAssertionWithFailureHint / ShowSubjectAbsentOption

ShowSubjectAbsentOption

interface ShowSubjectAbsentOption<T> : SubjectBasedOption.AbsentOption<T, Boolean> (source)

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

Inherited Properties

ifDefined

abstract val ifDefined: (T) -> R

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

Inherited 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 expectation is not defined.

Companion Object Functions

create

fun <T> create(ifDefined: (T) -> Boolean): DescriptiveAssertionWithFailureHint.ShowSubjectAbsentOption<T>