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

BasicAssertionGroupFinalStep

interface BasicAssertionGroupFinalStep : AssertionBuilderFinalStep<AssertionGroup>

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

Properties

assertions

abstract val assertions: List<Assertion>

The previously defined AssertionGroup.assertions

description

abstract val description: Translatable

The previously defined AssertionGroup.description.

groupType

abstract val groupType: AssertionGroupType

The previously defined AssertionGroup.type.

representation

abstract val representation: Any

The previously defined AssertionGroup.representation.

Inherited Functions

build

abstract fun build(): T

Creates and returns the new Assertion of type T.

Companion Object Functions

create

fun create(groupType: AssertionGroupType, description: Translatable, representation: Any, assertions: List<Assertion>): BasicAssertionGroupFinalStep

Factory method to create a BasicAssertionGroupFinalStep in the building process of an AssertionGroup with groupType, description and representation as well as the given assertions.

Inheritors

FinalStep

interface FinalStep : BasicAssertionGroupFinalStep

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

FinalStep

interface FinalStep : BasicAssertionGroupFinalStep

Final step which creates an AssertionGroup whose AssertionGroup.holds is a logic AND operation composed by preTransformationHolds and its AssertionGroup.assertions.