RootExpectOptions

data class RootExpectOptions<T>(val expectationVerb: Translatable?, val representationInsteadOfSubject: (T) -> Any?, val componentFactoryContainer: ComponentFactoryContainer?)(source)

Additional (non-mandatory) options to create a RootExpect.

See atrium-logic for helper functions to create an instance for this. Core is kept simple on purpose because it is also used in other JVM languages than Kotlin.

Constructors

Link copied to clipboard
constructor(expectationVerb: Translatable?, representationInsteadOfSubject: (T) -> Any?, componentFactoryContainer: ComponentFactoryContainer?)

Properties

Link copied to clipboard

Defines a custom components.

Link copied to clipboard

Defines a custom assertion verb if not null.

Link copied to clipboard

Defines a custom representation based on a present subject if not null.

Functions

Link copied to clipboard

Merges the given options with this RootExpectOptions object creating a new RootExpectOptions where defined properties in options will have precedence over properties defined in this instance.