atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating.changers.impl.subjectchanger / KindStepImpl

KindStepImpl

class KindStepImpl<T> : SubjectChangerBuilder.KindStep<T> (source)

Constructors

<init>

KindStepImpl(originalExpect: <ERROR CLASS><T>)

Properties

originalExpect

val originalExpect: <ERROR CLASS><T>

The previously specified assertion container to which the new Expect will delegate assertion checking.

Functions

reportBuilder

fun reportBuilder(): SubjectChangerBuilder.DescriptionRepresentationStep<T>

Entry point of the building process to not only change the subject but also report the change in reporting.

Inherited Functions

unreported

open fun <R> unreported(transformation: (T) -> R): <ERROR CLASS><R>

First and final step in the change-subject-process -- changes the subject without showing the change as such in reporting.

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.