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

DescriptiveAssertionWithFailureHint

interface DescriptiveAssertionWithFailureHint

Defines the contract to build a DescriptiveAssertion like assertion with an additional hint which might be shown if the Descriptive.DescriptionOption.test fails.

Types

FailureHintSubjectAbsentOption

interface FailureHintSubjectAbsentOption<T> : SubjectBasedOption.AbsentOption<T, Assertion>

Sub Option step to define a failure hint in case the subject of the assertion is not defined.

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 assertion.

FinalStep

interface FinalStep : AssertionBuilderFinalStep<Assertion>

Final step which creates a DescriptiveAssertion if the test holds or an AssertionGroup which includes additionally a failure hint created by the given failureHintFactory in case showHint evaluates to true.

ShowOption

interface ShowOption

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

ShowSubjectAbsentOption

interface ShowSubjectAbsentOption<T> : SubjectBasedOption.AbsentOption<T, Boolean>

Sub Option step to define a failure hint in case the subject of the assertion is not defined.

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 assertion.