doc / ch.tutteli.atrium.domain.creating.basic.contains / Contains / Builder

Builder

interface Builder<out T : Any, out S : Contains.SearchBehaviour> (source)

The entry point of the contract, containing the subjectProvider -- i.e. the subject of the assertion for which the sophisticated contain assertion should be created -- as well as the chosen searchBehaviour.

The searchBehaviour might me modified in which case it is recommended that a new Builder is created (retain immutability).

Properties

searchBehaviour

abstract val searchBehaviour: S

The chosen SearchBehaviour.

subjectProvider

abstract val subjectProvider: SubjectProvider<T>

The SubjectProvider from which this building process started and to which the resulting Assertion should be added.

Inheritors

Builder

interface Builder<out T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : Contains.Builder<T, S>

The entry point of the contract, containing the subjectProvider -- i.e. the subject of the assertion for which the sophisticated contain assertion should be created -- as well as the chosen searchBehaviour.

Builder

interface Builder<out E, out T : Iterable<E>, out S : IterableContains.SearchBehaviour> : Contains.Builder<T, S>

The entry point of the contract, containing the subjectProvider -- i.e. the subject of the assertion for which the sophisticated contain assertion should be created -- as well as the chosen searchBehaviour.

ContainsBuilder

abstract class ContainsBuilder<out T : Any, out S : Contains.SearchBehaviour> : Contains.Builder<T, S>

Represents the deprecated base class for builders representing the entry point of the process of building a sophisticated contains assertion.