doc / ch.tutteli.atrium.assertions.any.narrow / AnyNarrow

AnyNarrow

interface AnyNarrow

Defines the contract for sophisticated narrowing assertion builders.

The assertion is typically created by the DownCaster which itself requires a DownCastFailureHandler.

Types

DownCastFailureHandler

interface DownCastFailureHandler<T : Any, TSub : T>

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