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

NotOrAtMostCheckerStep

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

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

Parameters

T - The input type of the search.

S - The search behaviour which should be applied for the input of the search.

Extension Properties

_logic

val <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.CheckerStep<T, S>._logic: CharSequenceContains.CheckerStepLogic<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

NotOrAtMostCheckerStepImpl

class NotOrAtMostCheckerStepImpl<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : NotOrAtMostCheckerStep<T, S>, CharSequenceContains.CheckerStepInternal<T, S>