abstract fun <TSub : T, T : Any> newDownCastBuilder(description: ITranslatable, subType: KClass<TSub>, commonFields: CommonFields<T?>): IDownCastBuilder<T, TSub>
n Use the extension function ch.tutteli.atrium.newDownCastBuilder with reified type parameter whenever possible.
Prepares a down cast; use IDownCastBuilder.cast to perform the down cast.
Call IDownCastBuilder.withLazyAssertions/IDownCastBuilder.withNullRepresentation to specialise the down-cast.
description
- The description of the down-cast.
commonFields
- The commonFields which will be used to create a IDownCastBuilder.
Return
The newly created IDownCastBuilder.
See Also