atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.reporting.impl.verb / FinalStepImpl

FinalStepImpl

class FinalStepImpl<T> : ExpectBuilder.FinalStep<T> (source)

Constructors

<init>

FinalStepImpl(maybeSubject: <ERROR CLASS><T>, assertionVerb: <ERROR CLASS>, options: ExpectOptions<T>?)

Properties

assertionVerb

val assertionVerb: <ERROR CLASS>

The previously defined assertion verb.

maybeSubject

val maybeSubject: <ERROR CLASS><T>

The previously specified subject of the assertion.

options

val options: ExpectOptions<T>?

Either the previously specified ExpectOptions or null.

Functions

build

fun build(): <ERROR CLASS><T>

Creates a new Expect based on the previously defined maybeOptions.

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.