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

GroupTypeOption

interface GroupTypeOption : ExplanatoryAssertionGroupTypeOption (source)

Option step which allows to specify what ExplanatoryAssertionGroupType is used as AssertionGroup.type.

Properties

withDefaultType

abstract val withDefaultType: AssertionsOption<DefaultExplanatoryAssertionGroupType, ExplanatoryGroup.FinalStep>

Builder to create an AssertionGroup with a DefaultExplanatoryAssertionGroupType.

withWarningType

abstract val withWarningType: AssertionsOption<WarningAssertionGroupType, ExplanatoryGroup.FinalStep>

Builder to create an AssertionGroup with a WarningAssertionGroupType.

Functions

withType

abstract fun <T : ExplanatoryAssertionGroupType> withType(groupType: T): AssertionsOption<T, ExplanatoryGroup.FinalStep>

Builder to create an AssertionGroup with a custom ExplanatoryAssertionGroupType.

Companion Object Functions

create

fun create(): ExplanatoryGroup.GroupTypeOption

Factory method to create the GroupTypeOption step in the building process of an AssertionGroup with an ExplanatoryAssertionGroupType.