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

DescriptionOption

interface DescriptionOption (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

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

Functions

feature

open fun feature(featureRepresentation: () -> String): FeatureExtractor.ParameterObjectOption

Uses the given featureRepresentation as description.

methodCall

open fun methodCall(methodName: String, vararg arguments: Any?): FeatureExtractor.ParameterObjectOption

Uses coreFactory.newMethodCallFormatter to create a description of a method call with the given methodName and the given arguments.

withDescription

abstract fun withDescription(translatable: Translatable): FeatureExtractor.ParameterObjectOption

Uses the given translatable as description of the feature.