atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.migration / asExpect

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T> (source)

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

Try to switch entirely to Expect as Assert along with this function will be removed with 1.0.0

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

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

Try to switch entirely to Expect as Assert along with this function will be removed with 1.0.0

Returns
The deprecated plant.