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

FeatureExtractionStepImpl

class FeatureExtractionStepImpl<T> : FeatureExtractorBuilder.FeatureExtractionStep<T> (source)

Constructors

<init>

FeatureExtractionStepImpl(originalAssertionContainer: <ERROR CLASS><T>, description: <ERROR CLASS>, representationForFailure: Any)

Properties

description

val description: <ERROR CLASS>

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

originalAssertionContainer

val originalAssertionContainer: <ERROR CLASS><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) -> <ERROR CLASS><R>): FeatureExtractorBuilder.OptionsStep<T, R>

Inherited Functions

withFeatureExtraction

abstract fun <R> withFeatureExtraction(extraction: (subject: T) -> <ERROR CLASS><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).

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.