class CharSequenceContainsAssertionCreator<T : CharSequence, S : ISearchBehaviour> : ContainsObjectsAssertionCreator<T, Any, S, IChecker>, ICreator<T, Any>
Represents a creator of sophisticated contains
assertions for CharSequence.
A sophisticated contains
assertion is build up by a desired ISearchBehaviour, a ISearcher and a number of
ICheckers. 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 IAssertionGroup which represents the
sophisticated assertion as a whole.
T
- The type of the IAssertionPlant.subject for which the contains
assertion is be build.
S
- The search behaviour which should be applied to the input of the search.
CharSequenceContainsAssertionCreator(searchBehaviour: S, searcher: ISearcher<S>, checkers: List<IChecker>)
Represents a creator for sophisticated |
val descriptionContains: DescriptionCharSequenceAssertion
Provides the translation for |
|
val descriptionNumberOfOccurrences: DescriptionCharSequenceAssertion
Provides the translation for |
fun search(plant: IAssertionPlant<T>, searchCriterion: Any): Int
Searches for something matching the given searchCriterion in the given plant's subject and returns the number of occurrences. |
open fun createAssertionGroupForSearchCriteriaAssertions(assertions: List<IAssertion>): IAssertionGroup
Creates an IAssertionGroup representing the sophisticated |