atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / PleaseUseReplacementException

PleaseUseReplacementException

class PleaseUseReplacementException : Exception (source)

Indicates a problem which was indicated by a @Deprecated annotation but was ignored by you ;-)

Constructors

<init>

PleaseUseReplacementException(reason: String)

Indicates a problem which was indicated by a @Deprecated annotation but was ignored by you ;-)

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.