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

AnyTypeTransformationAssertionsBuilder

object AnyTypeTransformationAssertionsBuilder : AnyTypeTransformationAssertions (source)

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 ServiceLoader.

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: FailureHandler<T, TSub>): <ERROR CLASS>

isA

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

isNotNull

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

transform

fun <S : Any, T : Any> transform(parameterObject: ParameterObject<S, T>, canBeTransformed: (S) -> Boolean, transform: (S) -> T, failureHandler: FailureHandler<S, T>): <ERROR CLASS>