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

showBasedOnDefinedSubjectOnlyIf

open fun <T> showBasedOnDefinedSubjectOnlyIf(subjectProvider: SubjectProvider<T>, predicate: (T) -> Boolean): Descriptive.DescriptionOption<DescriptiveAssertionWithFailureHint.FinalStep>

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