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

Package ch.tutteli.atrium.domain.builders.assertions.builders

Contains extension functions for the AssertionBuilder.

Types

DescriptiveAssertionWithFailureHintFinalStep

interface DescriptiveAssertionWithFailureHintFinalStep : 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.

DescriptiveAssertionWithFailureHintShowOption

interface DescriptiveAssertionWithFailureHintShowOption

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

FixedClaimAssertionGroupFinalStep

interface FixedClaimAssertionGroupFinalStep : BasicAssertionGroupFinalStep

Final step which creates an AssertionGroup whose AssertionGroup.holds is fixed (not determined based on its AssertionGroup.assertions but on the given holds).

FixedClaimAssertionGroupHoldsOption

interface FixedClaimAssertionGroupHoldsOption<T : AssertionGroupType>

Option step which allows to specify the AssertionGroup.holds.

FixedClaimAssertionGroupTypeOption

interface FixedClaimAssertionGroupTypeOption

Option step which allows to specify the AssertionGroup.type.

Properties

fixedClaimGroup

val AssertionBuilder.fixedClaimGroup: FixedClaimAssertionGroupTypeOption

Builder to create an AssertionGroup whose AssertionGroup.holds is fixed (not determined based on its AssertionGroup.assertions).

Functions

withFailureHint

fun DescriptiveLikeAssertionDescriptionOption<DescriptiveAssertionFinalStep>.withFailureHint(failureHintFactory: () -> Assertion): DescriptiveAssertionWithFailureHintShowOption

Option to create a DescriptiveAssertion like assertion with an additional hint which might be shown if the DescriptiveLikeAssertionDescriptionOption.test fails.