doc / ch.tutteli.atrium.domain.builders.creating.changers / FeatureExtractorBuilder / DescriptionStep

DescriptionStep

interface DescriptionStep<T> (source)

Step which allows to specify the description which will be used to describe the feature.

Parameters

T - the type of the current subject.

Properties

originalAssertionContainer

abstract val originalAssertionContainer: Expect<T>

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

Functions

methodCall

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

Uses coreFactory.newMethodCallFormatter 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.

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

Uses the given translatable as description of the feature.

Companion Object Functions

create

fun <T> create(originalAssertionContainer: Expect<T>): FeatureExtractorBuilder.DescriptionStep<T>

Creates a DescriptionStep in the context of the FeatureExtractorBuilder.