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

Package ch.tutteli.atrium.logic.creating.transformers

Contains contracts involved in transforming Expect, their subject respectively.

Types

FailureHandlerAdapter

class FailureHandlerAdapter<T, R1, R> : SubjectChanger.FailureHandler<T, R>

Represents a SubjectChanger.FailureHandler which acts as an adapter for another failure handler by mapping first the given subject to another type R1 which is understood as input of the other failure handler.

FeatureExtractor

interface FeatureExtractor

Defines the contract for sophisticated safe feature extractions including assertion creation for the feature.

FeatureExtractorBuilder

interface FeatureExtractorBuilder

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

SubjectChanger

interface SubjectChanger

Defines the contract to change the subject of an assertion container (e.g. the subject of Expect) by creating a new Expect whereas the new Expect delegates assertion checking to a given original assertion container.

SubjectChangerBuilder

interface SubjectChangerBuilder

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

TransformationExecutionStep

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

Defines the minimal contract for the execution step of a subject transformation process - i.e. the step after choosing all options.

Properties

featureExtractor

val <T> AssertionContainer<T>.featureExtractor: FeatureExtractor

subjectChanger

val <T> AssertionContainer<T>.subjectChanger: SubjectChanger