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

ExecutionStepImpl

class ExecutionStepImpl<T, R> : SubjectChangerBuilder.ExecutionStep<T, R>, BaseTransformationExecutionStep<T, R, Expect<R>>

Constructors

<init>

ExecutionStepImpl(container: AssertionContainer<T>, action: AssertionContainer<T>.() -> Expect<R>, actionAndApply: AssertionContainer<T>.(Expect<R>.() -> Unit) -> Expect<R>)

Inherited Properties

action

val action: AssertionContainer<T>.() -> E

An action such as transform, extract etc. which creates and returns a new Expect of type R.

actionAndApply

val actionAndApply: AssertionContainer<T>.(Expect<R>.() -> Unit) -> Expect<R>

An action such as transform, extract etc. which not only creates and returns a new Expect of type R but also applies a given assertionCreator lambda.

container

val container: AssertionContainer<T>

Expect which was involved in the building process and holds assertion for the initial subject.

Extension Functions

collectAndLogicAppend

fun <T, R> TransformationExecutionStep<T, R, *>.collectAndLogicAppend(assertionCreator: AssertionContainer<R>.() -> Assertion): Expect<T>

Finishes the transformation process by appending the Assertion which is returned when calling TransformationExecutionStep.collectAndAppend with _logicAppend and the given assertionCreator.