doc / ch.tutteli.atrium.domain.creating.basic.contains / Contains / Creator / createAssertionGroup

createAssertionGroup

abstract fun createAssertionGroup(plant: AssertionPlant<T>, searchCriteria: List<SC>): AssertionGroup (source)

Creates an AssertionGroup representing the sophisticated contains assertion for the given plant based on the given searchCriteria.

The search process as such is usually influenced by a SearchBehaviour which defines the search behaviour and Checkers are used to create Assertions based on a determined search result which are grouped together into an AssertionGroup. This resulting AssertionGroup represents the sophisticated contains assertion as a whole.

Parameters

plant - The plant -- or rather its subject -- for which the AssertionGroup is created.

searchCriteria - The search criteria - typically not empty.

Exceptions

IllegalArgumentException - Might throw an IllegalArgumentException in case searchCriteria is empty and an empty value is not allowed.

Return
The newly created AssertionGroup.