doc / ch.tutteli.atrium.logic.creating.charsequence.contains.steps / WithTimesCheckerStep

WithTimesCheckerStep

interface WithTimesCheckerStep<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : CharSequenceContains.CheckerStep<T, S> (source)

A CharSequenceContains.CheckerStep which is used to choose a CharSequenceContains.Checker which is based on a number of times.

Extension Properties

_logic

val <T : CharSequence, S : CharSequenceContains.SearchBehaviour> WithTimesCheckerStep<T, S>._logic: WithTimesCheckerStepLogic<T, S>

Entry point to the logic level of Atrium -- which is one level deeper than the API -- within the building process of a sophisticated contains assertion for CharSequence.

Extension Functions

_logicAppend

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.CheckerStep<T, S>._logicAppend(factory: CharSequenceContains.CheckerStepLogic<T, S>.() -> Assertion): Expect<T>

Appends the Assertion the given factory creates based on this CharSequenceContains.CheckerStep.

matchFor

infix fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.matchFor(pattern: Regex): Expect<T>

Finishes the specification of the sophisticated contains assertion where the given Regex is expected to have a match.

infix fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.matchFor(patterns: All<Regex>): Expect<T>

Finishes the specification of the sophisticated contains assertion where the given Regex are expected to have a match, using a non-disjoint search.

regex

fun <T : CharSequence> CharSequenceContains.CheckerStep<T, NoOpSearchBehaviour>.regex(pattern: Regex, vararg otherPatterns: Regex): Expect<T>

Finishes the specification of the sophisticated contains assertion where the given Regex as well as the otherPatterns are expected to have a match, using a non-disjoint search.

Inheritors

AtLeastCheckerStep

interface AtLeastCheckerStep<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : WithTimesCheckerStep<T, S>

Represents the extension point for another step after a contains at least-check within a sophisticated contains assertion building process for CharSequence.

AtMostCheckerStep

interface AtMostCheckerStep<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : WithTimesCheckerStep<T, S>

Represents the extension point for another step after a contains at least once but at most-check within a sophisticated contains assertion building process for CharSequence.

ButAtMostCheckerStep

interface ButAtMostCheckerStep<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : WithTimesCheckerStep<T, S>

Represents the extension point for another step after a contains at least but at most-check within a sophisticated contains assertion building process for CharSequence.

ExactlyCheckerStep

interface ExactlyCheckerStep<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : WithTimesCheckerStep<T, S>

Represents the extension point for another step after a contains exactly-check within a sophisticated contains assertion building process for CharSequence.

WithTimesCheckerStepInternal

interface WithTimesCheckerStepInternal<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : WithTimesCheckerStep<T, S>, WithTimesCheckerStepLogic<T, S>, CharSequenceContains.CheckerStepInternal<T, S>

Sole purpose of this interface is to hide CharSequenceContains.CheckerStepLogic from newcomers which usually don't have to deal with this type and to keep the API clean.