doc / ch.tutteli.atrium.assertions.charsequence.contains / CharSequenceContains / Searcher

Searcher

interface Searcher<S : CharSequenceContains.SearchBehaviour> : CharSequenceContains.Searcher<S, Any> (source)
Deprecated: Use the interface from package domain.creating; will be removed with 1.0.0

Represents a deprecated searcher which supports the search behaviour S for a given input CharSequence of the search.

Parameters

S - The search behaviour which should be applied to the input CharSequence in which the Searcher will look for something -- the actual implementation of the search behaviour happens in the Searcher; SearchBehaviour only decorates the Translatable for reporting.

Inherited Functions

search

abstract fun search(searchIn: CharSequence, searchFor: SC): Int

Searches in the given searchIn for the given searchFor, using its toString implementation, and returns the number of occurrences.

Inheritors

CharSequenceContainsIgnoringCaseIndexSearcher

class CharSequenceContainsIgnoringCaseIndexSearcher : CharSequenceContains.Searcher<CharSequenceContainsIgnoringCaseSearchBehaviour>

Represents a Searcher which implements the CharSequenceContainsIgnoringCaseSearchBehaviour behaviour and uses CharSequence.indexOf to find expected objects.

CharSequenceContainsIgnoringCaseRegexSearcher

class CharSequenceContainsIgnoringCaseRegexSearcher : CharSequenceContains.Searcher<CharSequenceContainsIgnoringCaseSearchBehaviour>

Represents a Searcher which implements the CharSequenceContainsIgnoringCaseSearchBehaviour behaviour and evaluates the matches of a given regular expression on the input of the search.

CharSequenceContainsIndexSearcher

class CharSequenceContainsIndexSearcher : CharSequenceContains.Searcher<CharSequenceContainsNoOpSearchBehaviour>

Represents a Searcher which uses CharSequence.indexOf to find expected objects.

CharSequenceContainsRegexSearcher

class CharSequenceContainsRegexSearcher : CharSequenceContains.Searcher<CharSequenceContainsNoOpSearchBehaviour>

Represents a Searcher which evaluates the matches of a given regular expression on the input of the search.