FinalStep

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.

Types

Link copied to clipboard
object Companion

Provides factory methods to create a FinalStep and serves as extension point.

Properties

Link copied to clipboard

The previously defined DescriptiveAssertion.description.

Link copied to clipboard
abstract val failureHintFactory: () -> Assertion

The previously defined factory method which creates the failure hint.

Link copied to clipboard
abstract val representation: Any

The previously defined DescriptiveAssertion.representation.

Link copied to clipboard
abstract val showHint: () -> Boolean

The previously defined showHint predicate which defines whether the failure hint shall be shown in case the assertion fails or not.

Link copied to clipboard
abstract val test: () -> Boolean

The previously defined test which is used to determine DescriptiveAssertion.holds.

Functions

Link copied to clipboard
abstract fun build(): Assertion

Creates and returns the new Assertion of type T.