doc / ch.tutteli.atrium.logic.creating.transformers.impl.subjectchanger / TransformationStepImpl

TransformationStepImpl

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

Constructors

<init>

TransformationStepImpl(container: AssertionContainer<T>, description: Translatable, representation: Any)

Properties

container

val container: AssertionContainer<T>

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

description

val description: Translatable

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

representation

val representation: Any

The previously specified representation of the change.

Functions

withTransformation

fun <R> withTransformation(transformation: (T) -> Option<R>): SubjectChangerBuilder.FailureHandlerStep<T, R>

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