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

TransformationStepImpl

class TransformationStepImpl<T> : SubjectChangerBuilder.TransformationStep<T> (source)

Constructors

<init>

TransformationStepImpl(originalExpect: <ERROR CLASS><T>, description: <ERROR CLASS>, representation: Any)

Properties

description

val description: <ERROR CLASS>

The previously specified description which describes the kind of subject change.

originalExpect

val originalExpect: <ERROR CLASS><T>

The previously specified assertion container to which the new Expect will delegate assertion checking.

representation

val representation: Any

The previously specified representation of the change.

Functions

withTransformation

fun <R> withTransformation(transformation: (T) -> <ERROR CLASS><R>): SubjectChangerBuilder.FailureHandlerOption<T, R>

Inherited Functions

withTransformation

abstract fun <R> withTransformation(transformation: (T) -> <ERROR CLASS><R>): SubjectChangerBuilder.FailureHandlerOption<T, R>

Defines the new subject, most likely based on the current subject (but does not need to be).

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.