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

Fun0AssertionsBuilder

object Fun0AssertionsBuilder (source)

Delegates inter alia to the implementation of Fun0Assertions. In detail, it implements Fun0Assertions by delegating to fun0Assertions which in turn delegates to the implementation via loadSingleService.

Functions

isNotThrowing

fun <R, T : () -> R> isNotThrowing(expect: <ERROR CLASS><T>): <ERROR CLASS>

isThrowing

fun <TExpected : Throwable> isThrowing(expect: <ERROR CLASS><() -> Any?>, expectedType: KClass<TExpected>): <ERROR CLASS>

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.