atrium-api-late-binding / ch.tutteli.atrium

Package ch.tutteli.atrium

Types

AtriumFactory

object AtriumFactory : IAtriumFactory

A dummy implementation of IAtriumFactory which should be replaced by an actual implementation.

IAtriumFactory

interface IAtriumFactory

The minimum contract of the 'abstract factory' of atrium.

Functions

newCheckLazilyAtTheEnd

fun <T : Any> IAtriumFactory.newCheckLazilyAtTheEnd(assertionVerb: ITranslatable, subject: T, reporter: IReporter, createAssertions: IAssertionPlant<T>.() -> Unit): IAssertionPlant<T>

Use this function to create a custom assertion verb which lazy evaluates assertions (see IAtriumFactory.newCheckLazily).

newDownCastBuilder

fun <TSub : T, T : Any> IAtriumFactory.newDownCastBuilder(description: ITranslatable, commonFields: CommonFields<T?>): IDownCastBuilder<T, TSub>

Prepares a down cast; use IDownCastBuilder.cast to perform the down cast.