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

ShowOption

interface ShowOption (source)

Option step which allows to specify in which situations the failure hint should be shown.

Properties

showForAnyFailure

abstract val showForAnyFailure: DescriptionOption<FinalStep>

Defines that the failure hint shall be shown in any case.

Functions

showOnlyIf

abstract fun showOnlyIf(predicate: () -> Boolean): DescriptionOption<FinalStep>

Defines that the failure hint shall only be shown if the given predicate holds.

Companion Object Functions

create

fun create(test: () -> Boolean, failureHintFactory: () -> Assertion): ShowOption