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

Package ch.tutteli.atrium.logic.creating.charsequence.contains.steps

Contains steps for sophisticated CharSequence.contains expectation builders.

Types

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.

NotCheckerStep

interface NotCheckerStep<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : CharSequenceContains.CheckerStep<T, S>

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

NotOrAtMostCheckerStep

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

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

WithTimesCheckerStep

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

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

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.

WithTimesCheckerStepLogic

interface WithTimesCheckerStepLogic<T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : CharSequenceContains.CheckerStepLogic<T, S>

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

Properties

ignoringCase

val <T : CharSequence, S : NoOpSearchBehaviour> CharSequenceContains.EntryPointStepLogic<T, S>.ignoringCase: CharSequenceContains.EntryPointStep<T, IgnoringCaseSearchBehaviour>

Functions

atLeastCheckerStep

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStepLogic<T, S>.atLeastCheckerStep(times: Int, nameContainsNotFun: String, atLeastCall: (Int) -> String): AtLeastCheckerStep<T, S>

atMostCheckerStep

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStepLogic<T, S>.atMostCheckerStep(times: Int, nameContainsNotFun: String, atMostCall: (Int) -> String, atLeastCall: (Int) -> String, exactlyCall: (Int) -> String): AtMostCheckerStep<T, S>

butAtMostCheckerStep

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> WithTimesCheckerStepLogic<T, S>.butAtMostCheckerStep(times: Int, nameContainsNotFun: String, atLeastButAtMostCall: (Int, Int) -> String, atLeastCall: (Int) -> String, butAtMostCall: (Int) -> String, exactlyCall: (Int) -> String, atMostCall: (Int) -> String): ButAtMostCheckerStep<T, S>

exactlyCheckerStep

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStepLogic<T, S>.exactlyCheckerStep(times: Int, nameContainsNotFun: String, exactlyCall: (Int) -> String): ExactlyCheckerStep<T, S>

notCheckerStep

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStepLogic<T, S>.notCheckerStep(): NotCheckerStep<T, S>

notOrAtMostCheckerStep

fun <T : CharSequence, S : CharSequenceContains.SearchBehaviour> CharSequenceContains.EntryPointStepLogic<T, S>.notOrAtMostCheckerStep(times: Int, nameContainsNotFun: String, notOrAtMostCall: (Int) -> String): NotOrAtMostCheckerStep<T, S>