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

DefinedOption

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

Sub option step in case the subject is defined.

Parameters

T - The type of the subject of the expectation

R - The resulting type which should be created.

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.

Inheritors

FailureHintSubjectDefinedOption

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

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

ShowSubjectDefinedOption

interface ShowSubjectDefinedOption<T> : SubjectBasedOption.DefinedOption<T, Boolean, DescriptiveAssertionWithFailureHint.ShowSubjectAbsentOption<T>>

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