doc / ch.tutteli.atrium.api.cc.en_UK.creating.charsequence.contains.builders / NotCheckerOptionImpl

NotCheckerOptionImpl

open class NotCheckerOptionImpl<out T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : NotCheckerOptionBase<T, S>, NotCheckerOption<T, S>
Deprecated: Do not rely on this type; will be made internal with 1.0.0

Represents the builder of a contains not at all check within the fluent API of a sophisticated contains assertion for CharSequence.

Parameters

T - The input type of the search.

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

Constructors

<init>

NotCheckerOptionImpl(containsBuilder: CharSequenceContains.Builder<T, S>)

Represents the builder of a contains not at all check within the fluent API of a sophisticated contains assertion for CharSequence.

Inherited Properties

checkers

open val checkers: List<CharSequenceContains.Checker>

Contains all Checkers which should be applied to the search result.

containsBuilder

open val containsBuilder: CharSequenceContains.Builder<T, S>

The previously chosen Builder, containing inter alia the SubjectProvider to which the resulting Assertion shall be added.

Extension Properties

ignoringCase

val <T : CharSequence> NotCheckerOption<T, NotSearchBehaviour>.ignoringCase: NotCheckerOption<T, IgnoringCaseSearchBehaviour>

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

Extension Functions

addAssertionForAssert

fun <T : Any, B : Contains.Builder<T, *>> Contains.CheckerOption<T, *, *, B>.addAssertionForAssert(assertion: Assertion): Assert<T>

Helper method which simplifies adding assertions to the assertion container which itself is stored in Contains.CheckerOption.containsBuilder.

matchFor

infix fun <T : CharSequence> CharSequenceContains.CheckerOption<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.CheckerOption<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.CheckerOption<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

CharSequenceContainsNotCheckerBuilder

open class CharSequenceContainsNotCheckerBuilder<out T : CharSequence, out S : CharSequenceContains.SearchBehaviour> : NotCheckerOptionImpl<T, S>, CharSequenceContainsCheckerBuilder<T, S>

Represents the deprecated builder of a contains not at all check within the fluent API of a sophisticated contains assertion for CharSequence.