doc / ch.tutteli.atrium.domain.builders.migration / asExpect

asExpect

fun <T, A : BaseAssertionPlant<T, *>> A.asExpect(): Expect<T>
Deprecated: Switch from Assert to Expect, this function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0

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 : BaseAssertionPlant<T, *>> A.asExpect(assertionCreator: Expect<T>.() -> Unit): A
Deprecated: Switch from Assert to Expect, this function was introduced in 0.9.0 to ease the migration from Assert to Expect; will be removed with 1.0.0

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.