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

FailureHintSubjectDefinedOption

interface FailureHintSubjectDefinedOption<T> : SubjectBasedOption.DefinedOption<T, Assertion, DescriptiveAssertionWithFailureHint.FailureHintSubjectAbsentOption<T>> (source)

Sub Option step to define a failure hint based on a defined subject of the expectation.

Inherited Functions

ifDefined

abstract fun ifDefined(failureHintFactory: (T) -> R): AO

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

Companion Object Functions

create

fun <T> create(): DescriptiveAssertionWithFailureHint.FailureHintSubjectDefinedOption<T>