atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating.changers.impl.subjectchanger / FinalStepImpl

FinalStepImpl

class FinalStepImpl<T, R> : SubjectChangerBuilder.FinalStep<T, R> (source)

Constructors

<init>

FinalStepImpl(transformationStep: SubjectChangerBuilder.TransformationStep<T>, transformation: (T) -> <ERROR CLASS><R>, failureHandler: <ERROR CLASS><T, R>)

Properties

failureHandler

val failureHandler: <ERROR CLASS><T, R>

The previously specified SubjectChanger.FailureHandler.

transformation

val transformation: (T) -> <ERROR CLASS><R>

The previously specified new subject.

transformationStep

val transformationStep: SubjectChangerBuilder.TransformationStep<T>

The so far chosen options up to the TransformationStep step.

Functions

build

fun build(): <ERROR CLASS><T, R>

Finishes the reported subject change-process by building a new Expect taking the previously chosen options into account.

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.