doc / ch.tutteli.atrium.domain.assertions.composers / AssertionComposer

AssertionComposer

interface AssertionComposer (source)

Responsible to compose Assertions based on the AssertionBuilder.

Functions

createDescriptiveWithFailureHint

abstract fun createDescriptiveWithFailureHint(description: Translatable, representation: Any, test: () -> Boolean, showHint: () -> Boolean, failureHintFactory: () -> Assertion): Assertion

Shall create kind of a DescriptiveAssertion if test holds or an AssertionGroup which includes additionally a failure hint created by the given failureHintFactory in case showHint evaluates to true.