interface RepresentationInCaseOfFailureStep<T>
Step which allows to to define the representation which shall be used in case the extraction cannot be performed.
T
- the type of the current subject.
abstract val container: AssertionContainer<T>
The previously specified assertion container from which we are going to extract the feature. |
|
abstract val description: Translatable
The previously specified description which describes the kind of feature extraction. |
open fun withRepresentationForFailure(representationProvider: () -> Any?): FeatureExtractorBuilder.FeatureExtractionStep<T>
Uses the given representationProvider, by turning it into a LazyRepresentation, to get the representation which will be used in case the extraction cannot be performed. abstract fun withRepresentationForFailure(representation: Any): FeatureExtractorBuilder.FeatureExtractionStep<T>
Uses the given representation in case the extraction cannot be performed. |
operator fun <T> invoke(container: AssertionContainer<T>, description: Translatable): FeatureExtractorBuilder.RepresentationInCaseOfFailureStep<T>
Creates a RepresentationInCaseOfFailureStep in the context of the FeatureExtractorBuilder. |