atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating.changers.impl.featureextractor / FeatureExtractionStepImpl

FeatureExtractionStepImpl

class FeatureExtractionStepImpl<T> : FeatureExtractorBuilder.FeatureExtractionStep<T>

Constructors

<init>

FeatureExtractionStepImpl(originalAssertionContainer: Expect<T>, description: Translatable, representationForFailure: Any)

Properties

description

val description: Translatable

The previously specified description which describes the kind of feature extraction.

originalAssertionContainer

val originalAssertionContainer: Expect<T>

The previously specified assertion container from which we are going to extract the feature.

representationForFailure

val representationForFailure: Any

The previously specified representation which will be used in case the feature cannot be extracted.

Functions

withFeatureExtraction

fun <R> withFeatureExtraction(extraction: (T) -> Option<R>): FeatureExtractorBuilder.OptionsStep<T, R>

Defines the feature extraction as such which is most likely based on the current subject (but does not need to be).