doc / ch.tutteli.atrium.logic.creating.transformers.impl.featureextractor / DescriptionStepImpl

DescriptionStepImpl

class DescriptionStepImpl<T> : FeatureExtractorBuilder.DescriptionStep<T> (source)

Constructors

<init>

DescriptionStepImpl(container: AssertionContainer<T>)

Properties

container

val container: AssertionContainer<T>

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

Functions

withDescription

fun withDescription(translatable: Translatable): FeatureExtractorBuilder.RepresentationInCaseOfFailureStep<T>

Uses the given translatable as description of the feature.

Inherited Functions

methodCall

open fun methodCall(methodName: String, vararg arguments: Any?): FeatureExtractorBuilder.RepresentationInCaseOfFailureStep<T>

Uses the configured MethodCallFormatter to create a description of a method call with the given methodName and the given arguments.

withDescription

open fun withDescription(description: String): FeatureExtractorBuilder.RepresentationInCaseOfFailureStep<T>

Uses the given description, wraps it into an Untranslatable and uses it as description of the feature.