doc / ch.tutteli.atrium.assertions.any.typetransformation / AnyTypeTransformation


interface AnyTypeTransformation
Deprecated: Use the interface from package domain.creating; will be removed with 1.0.0

Defines the contract for sophisticated narrowing assertion builders.

The assertion is typically created by the DownCaster or the more generic TypeTransformer which itself requires a TypeTransformationFailureHandler.



interface TypeTransformationFailureHandler<in T : Any, out TSub : Any>

A handler which decides how the lambda -- which could have created subsequent assertions for the transformed AssertionPlant.subject if the transformation of the AssertionPlant.subject to type TSub did not fail -- should be used in reporting.