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

AssertionBuilderFinalStep

interface AssertionBuilderFinalStep<T : Assertion> (source)

Final step in the AssertionBuilder process, creates the desired Assertion of type T.

Parameters

T - the type of the Assertion.

Functions

build

abstract fun build(): T

Creates and returns the new Assertion of type T.

Inheritors

BasicAssertionGroupFinalStep

interface BasicAssertionGroupFinalStep : AssertionBuilderFinalStep<AssertionGroup>

Final step which creates an AssertionGroup with the previously defined groupType, description, representation and assertions.

ExplanatoryAssertionGroupFinalStep

interface ExplanatoryAssertionGroupFinalStep : AssertionBuilderFinalStep<AssertionGroup>

Final step which creates an AssertionGroup with an ExplanatoryAssertionGroupType based on the previously defined groupType and the explanatoryAssertions.

FinalStep

interface FinalStep : AssertionBuilderFinalStep<DescriptiveAssertion>

Final step which creates a DescriptiveAssertion based on the previously defined test, description and representation.

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.

FinalStep

interface FinalStep : AssertionBuilderFinalStep<ExplanatoryAssertion>

Final step which creates an ExplanatoryAssertion based on the previously defined explanation.

FinalStep

interface FinalStep : AssertionBuilderFinalStep<AssertionGroup>, ExplanatoryAssertionGroupFinalStep

Final step which creates an AssertionGroup with an ExplanatoryAssertionGroupType based on the previously defined groupType and the explanatoryAssertions.

FinalStep

interface FinalStep : AssertionBuilderFinalStep<RepresentationOnlyAssertion>

Final step which creates an RepresentationOnlyAssertion based on the previously defined representation.