doc / ch.tutteli.atrium.assertions.builders / DescriptiveAssertionWithFailureHint / ShowOption / showBasedOnDefinedSubjectOnlyIf

showBasedOnDefinedSubjectOnlyIf

open fun <T> showBasedOnDefinedSubjectOnlyIf(expect: Expect<T>, predicate: (T) -> Boolean): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep> (source)

Defines that the failure hint shall be shown if the subject is defined and the given predicate holds for it