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

AnyTypeTransformationFailureHandlerFactoryBuilder

object AnyTypeTransformationFailureHandlerFactoryBuilder (source)
Deprecated: Switch from `Assert` to `Expect` and use `ExpectImpl` instead; will be removed with 1.0.0

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

Functions

newExplanatory

fun <S : Any, T : Any> newExplanatory(): <ERROR CLASS>

newExplanatoryWithHint

fun <S : Any, T : Any> newExplanatoryWithHint(showHint: () -> Boolean, failureHintFactory: () -> <ERROR CLASS>): <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.