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


abstract fun createAssertionGroup(subjectProvider: SubjectProvider<T>, searchCriteria: List<SC>): AssertionGroup

Creates an AssertionGroup representing the sophisticated contains assertion for the subject the given subjectProvider provides, 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.


subjectProvider - Provides the subject for which the AssertionGroup is created.

searchCriteria - The search criteria - typically not empty.


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

The newly created AssertionGroup.