doc / ch.tutteli.atrium.assertions.charsequence.contains.builders / CharSequenceContainsBuilder

CharSequenceContainsBuilder

class CharSequenceContainsBuilder<out T : CharSequence, S : ISearchBehaviour> : ContainsBuilder<T, S>

Represents the entry point of the fluent API of sophisticated contains assertions. It contains the plant for which the IAssertion shall be build as well as the decoration behaviour which shall be applied to the plant's subject.

Parameters

T - The input type of the search which is the same as the type of the subject of the plant. S - The search behaviour which should be applied for the input of the search.

Constructors

<init>

CharSequenceContainsBuilder(plant: IAssertionPlant<T>, decorator: S)

Represents the entry point of the fluent API of sophisticated contains assertions.

Inherited Properties

decorator

val decorator: S

The search behaviour which shall be applied to the input of the search.

plant

val plant: IAssertionPlant<T>

The IAssertionPlant for which the sophisticated contains assertions shall be built.

Extension Properties

ignoriereGrossKleinschreibung

val <T : CharSequence> CharSequenceContainsBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.ignoriereGrossKleinschreibung: CharSequenceContainsBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>

Defines that the decoration behaviour ignore case shall be applied to this sophisticated contains assertion.

ignoringCase

val <T : CharSequence> CharSequenceContainsBuilder<T, CharSequenceContainsNoOpSearchBehaviour>.ignoringCase: CharSequenceContainsBuilder<T, CharSequenceContainsIgnoringCaseSearchBehaviour>

Defines that the decoration behaviour ignore case shall be applied to this sophisticated contains assertion.

Extension Functions

atLeast

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.atLeast(times: Int): CharSequenceContainsAtLeastCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least number of times within the search input.

atMost

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.atMost(times: Int): CharSequenceContainsAtMostCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least once but at most number of times within the search input.

exactly

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.exactly(times: Int): CharSequenceContainsExactlyCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs exactly number of times within the search input.

genau

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.genau(times: Int): CharSequenceContainsExactlyCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs exactly number of times within the search input.

hoechstens

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.hoechstens(times: Int): CharSequenceContainsAtMostCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least once but at most number of times within the search input.

nichtOderHoechstens

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.nichtOderHoechstens(times: Int): CharSequenceContainsNotOrAtMostCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs not at all or at most number of times within the search input.

notOrAtMost

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.notOrAtMost(times: Int): CharSequenceContainsNotOrAtMostCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs not at all or at most number of times within the search input.

zumindest

fun <T : CharSequence, S : ISearchBehaviour> CharSequenceContainsBuilder<T, S>.zumindest(times: Int): CharSequenceContainsAtLeastCheckerBuilder<T, S>

Restricts a contains assertion by specifying that the number of occurrences of the object which we are looking for, occurs at least number of times within the search input.