doc / ch.tutteli.atrium.assertions.builders / ExplanatoryGroup / FinalStep

FinalStep

interface FinalStep : AssertionBuilderFinalStep<AssertionGroup>, ExplanatoryAssertionGroupFinalStep (source)

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

Properties

explanatoryAssertions

abstract val explanatoryAssertions: List<Assertion>

The previously defined AssertionGroup.assertions

groupType

abstract val groupType: ExplanatoryAssertionGroupType

The previously defined AssertionGroup.type.

Inherited Functions

build

abstract fun build(): T

Creates and returns the new Assertion of type T.

Companion Object Functions

create

fun create(groupType: ExplanatoryAssertionGroupType, explanatoryAssertions: List<Assertion>): FinalStep

Factory method to create the FinalStep in the building process of AssertionGroup with an ExplanatoryAssertionGroupType (specified by the given groupType) and explanatoryAssertions.