doc / ch.tutteli.atrium.domain.creating.feature.extract / FeatureExtractor / Creator

Creator

interface Creator<TSubject, T : Any> : FeatureExtractor.CreatorLike<TSubject, T, AssertionPlant<T>, CollectingAssertionPlant<T>> (source)
Deprecated: Switch from `Assert` to `Expect` and use then FeatureExtractor from package ch.tutteli.atrium.domain.creating.changers instead; will be removed with 1.0.0

Final step of the sophisticated safe feature extraction where one can define extractAndAssertIt for the extracted feature or use extract to get a feature AssertionPlant.

Inherited Properties

featureRepresentation

abstract val featureRepresentation: Translatable

The previously chosen feature representation.

parameterObject

abstract val parameterObject: FeatureExtractor.ParameterObject<TSubject, T>

The previously created ParameterObject.

Inherited Functions

extract

abstract fun extract(): A

Extracts a feature with the help of the specified parameterObject.featureExtraction if it parameterObject.canBeExtracted and returns an assertion plant for it.

extractAndAssertIt

abstract fun extractAndAssertIt(assertionCreator: C.() -> Unit): Assertion

Extracts a feature with the help of the specified parameterObject.featureExtraction if it parameterObject.canBeExtracted and uses the given assertionCreator to create feature assertions.