atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating.changers.impl.featureextractor / DescriptionStepImpl

DescriptionStepImpl

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

Constructors

<init>

DescriptionStepImpl(originalAssertionContainer: <ERROR CLASS><T>)

Properties

originalAssertionContainer

val originalAssertionContainer: <ERROR CLASS><T>

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

Functions

withDescription

fun withDescription(translatable: <ERROR CLASS>): 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 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.

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.