CharSequenceContainsAssertionCreator

Represents a creator of sophisticated contains assertions for CharSequence.

A sophisticated contains assertion is build up by a desired SearchBehaviour, a Searcher and a number of Checkers. The searcher searches for specified objects -- considering the given searchBehaviour -- and then passes on the result to the given checkers which in turn create the assertions representing the corresponding check. Those created assertions are then grouped into an AssertionGroup which represents the sophisticated assertion as a whole.

Parameters

T

The type of the subject for which the contains assertion is be build.

SC

The type of the search criteria.

S

The search behaviour which should be applied to the input of the search.

searchBehaviour

The search behaviour.

searcher

The search method which is used to search for given objects.

checkers

The checkers which create assertions based on the search result.

Constructors

Link copied to clipboard
constructor(searchBehaviour: S, searcher: CharSequenceContains.Searcher<S, SC>, checkers: List<CharSequenceContains.Checker>, groupDescription: Translatable)

Represents a creator for sophisticated contains assertions for CharSequence.

Functions

Link copied to clipboard
override fun createAssertionGroup(container: AssertionContainer<T>, searchCriteria: List<SC>): AssertionGroup

Creates an AssertionGroup representing the sophisticated contains assertion for the subject of the given container, based on the given searchCriteria.