doc / ch.tutteli.atrium.logic.creating.transformers / SubjectChangerBuilder

SubjectChangerBuilder

interface SubjectChangerBuilder

Helps in using SubjectChanger by providing a guide to set the different parameters in form of a fluent builder.

Types

DescriptionRepresentationStep

interface DescriptionRepresentationStep<T>

Step which allows to specify the description and representation of the change.

ExecutionStep

interface ExecutionStep<T, R> : TransformationExecutionStep<T, R, Expect<R>>

Step which allows to decide how the transformation shall be executed.

FailureHandlerStep

interface FailureHandlerStep<T, R>

Optional step which allows to specify a custom SubjectChanger.FailureHandler.

FinalStep

interface FinalStep<T, R>

Final step in the help-me-to-call-SubjectChanger-process, which creates an ExecutionStep incorporating all chosen options and is able to call SubjectChanger accordingly.

KindStep

interface KindStep<T>

Step where one has to decide the kind of subject change.

TransformationStep

interface TransformationStep<T>

Step to define the transformation which yields the new subject wrapped into a Some if the transformation as such can be carried out; otherwise None.

Companion Object Functions

invoke

operator fun <T> invoke(container: AssertionContainer<T>): SubjectChangerBuilder.KindStep<T>

Entry point to use the SubjectChangerBuilder.