doc / ch.tutteli.atrium.domain.builders.creating / AnyTypeTransformationAssertionsBuilder

AnyTypeTransformationAssertionsBuilder

object AnyTypeTransformationAssertionsBuilder : AnyTypeTransformationAssertions
Deprecated: Switch from `Assert` to `Expect` and use `ExpectImpl` instead; will be removed with 1.0.0

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

Properties

failureHandlers

val failureHandlers: AnyTypeTransformationFailureHandlerFactoryBuilder

Returns AnyTypeTransformationFailureHandlerFactoryBuilder which inter alia delegates to the implementation of FailureHandlerFactory.

Functions

downCast

fun <T : Any, TSub : T> downCast(description: Translatable, subType: KClass<TSub>, subjectPlant: BaseAssertionPlant<T?, *>, assertionCreator: AssertionPlant<TSub>.() -> Unit, failureHandler: AnyTypeTransformation.FailureHandler<T, TSub>): Unit

isA

fun <TSub : Any> isA(plant: AssertionPlant<Any>, subType: KClass<TSub>, assertionCreator: AssertionPlant<TSub>.() -> Unit): Unit

isNotNull

fun <T : Any> isNotNull(plant: AssertionPlantNullable<T?>, type: KClass<T>, assertionCreator: AssertionPlant<T>.() -> Unit): Unit

transform

fun <S : Any, T : Any> transform(parameterObject: AnyTypeTransformation.ParameterObject<S, T>, canBeTransformed: (S) -> Boolean, transform: (S) -> T, failureHandler: AnyTypeTransformation.FailureHandler<S, T>): Unit