interface RepresentationInCaseOfFailureStep<T>
(source)
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 description: Translatable
The previously specified description which describes the kind of feature extraction. |
|
abstract val originalAssertionContainer: Expect<T>
The previously specified assertion container from which we are going to extract the feature. |
open fun withRepresentationForFailure(translatable: Translatable): FeatureExtractorBuilder.FeatureExtractionStep<T>
Uses translatable as representation which will be used in case the extraction cannot be performed. 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. |
fun <T> create(originalAssertionContainer: Expect<T>, description: Translatable): FeatureExtractorBuilder.RepresentationInCaseOfFailureStep<T>
Creates a RepresentationInCaseOfFailureStep in the context of the FeatureExtractorBuilder. |