doc / ch.tutteli.atrium.logic.creating.basic.contains.creators.impl / ContainsObjectsAssertionCreator / search

search

protected abstract fun search(multiConsumableContainer: AssertionContainer<TT>, searchCriterion: SC): Int (source)

Searches for something matching the given searchCriterion in the subject of the given multiConsumableContainer and returns the number of occurrences.

Parameters

multiConsumableContainer - The provider of the subject of this expectation in which we shall look for something matching the given searchCriterion.

searchCriterion - The search criterion used to determine whether something matches or not.

Return
The number of times the searchCriterion matched in the subject of this expectation.