doc / ch.tutteli.atrium.logic.creating

Package ch.tutteli.atrium.logic.creating

Contains builders which help in creating different types of Expect.

Types

FeatureExpectOptionsChooser

interface FeatureExpectOptionsChooser<R>

Helper lambda to specify FeatureExpectOptions via convenience methods.

RootExpectBuilder

interface RootExpectBuilder

Defines the contract to create custom expectation verbs, RootExpect<T> respectively.

Functions

FeatureExpectOptions

fun <R> FeatureExpectOptions(configuration: FeatureExpectOptionsChooser<R>.() -> Unit): FeatureExpectOptions<R>

Define additional (non-mandatory) options to create a FeatureExpect based on a given FeatureExpectOptionsChooser-lambda.

RootExpectOptions

fun <T> RootExpectOptions(configuration: RootExpectBuilder.OptionsChooser<T>.() -> Unit): RootExpectOptions<T>

Helper function to create a RootExpectOptions via

withComponent

fun <I : Any, T> RootExpectBuilder.OptionsChooser<T>.withComponent(factory: (ComponentFactoryContainer) -> I): Unit

Convenience function which infers the KClass usually required for RootExpectBuilder.OptionsChooser.withComponent.