interface AssertionsOption<out T : AssertionGroupType, out R>
Option step which allows to specify AssertionGroup.assertions.
abstract val description: Translatable
The previously defined AssertionGroup.description. |
|
abstract val groupType: T
The previously defined AssertionGroup.type. |
|
abstract val representation: Any
The previously defined AssertionGroup.representation. |
open fun withAssertion(assertion: Assertion): R
Uses the given assertion as single AssertionGroup.assertions. |
|
open fun withAssertions(assertion1: Assertion, assertion2: Assertion): R
Uses the given assertion1 and assertion2 as AssertionGroup.assertions. open fun withAssertions(assertion1: Assertion, assertion2: Assertion, assertion3: Assertion): R
Uses the given assertion1, assertion2 and assertion3 as AssertionGroup.assertions. abstract fun withAssertions(assertions: List<Assertion>): R
Uses the given assertions as AssertionGroup.assertions. |
fun <T : AssertionGroupType, R> create(groupType: T, description: Translatable, representation: Any, factory: (T, Translatable, Any, List<Assertion>) -> R): AssertionsOption<T, R>
Factory method to create an AssertionsOption step in the building process of an AssertionGroup with the given groupType where the given description and representation is used as AssertionGroup.description/AssertionGroup.representation and the given factory to create the next step in the building process. |
|
fun <T : AssertionGroupType> factoryWithDefaultFinalStep(): (T, Translatable, Any) -> AssertionsOption<T, BasicAssertionGroupFinalStep>
Returns a factory method which creates an AssertionsOption where BasicAssertionGroupFinalStep is used as final step in the building process. |
|
fun <T : AssertionGroupType> withDefaultFinalStepAndEmptyDescriptionAndRepresentation(groupType: T): AssertionsOption<T, BasicAssertionGroupFinalStep>
Factory method to create an AssertionsOption step in the building process of an AssertionGroup with the given groupType an empty AssertionGroup.description and AssertionGroup.representation where BasicAssertionGroupFinalStep is used as final step in the building process. |
|
fun <T : AssertionGroupType, R> withEmptyDescriptionAndRepresentation(groupType: T, factory: (T, Translatable, Any, List<Assertion>) -> R): AssertionsOption<T, R>
Factory method to create an AssertionsOption step in the building process of an AssertionGroup with the given groupType an empty AssertionGroup.description and AssertionGroup.representation where the given factory is used to create the next step in the building process. |