doc / ch.tutteli.atrium.logic / CharSequenceAssertions

CharSequenceAssertions

interface CharSequenceAssertions (source)

Collection of assertion functions and builders which are applicable to subjects with a CharSequence type.

Functions

containsBuilder

abstract fun <T : CharSequence> containsBuilder(container: AssertionContainer<T>): CharSequenceContains.EntryPointStep<T, NoOpSearchBehaviour>

Starts the building process of a sophisticated contains assertions.

containsNotBuilder

abstract fun <T : CharSequence> containsNotBuilder(container: AssertionContainer<T>): NotCheckerStep<T, NotSearchBehaviour>

Starts the building process of a sophisticated contains assertions and already applies a NotCheckerStep with a NotSearchBehaviour.

endsNotWith

abstract fun <T : CharSequence> endsNotWith(container: AssertionContainer<T>, expected: CharSequence): Assertion

endsWith

abstract fun <T : CharSequence> endsWith(container: AssertionContainer<T>, expected: CharSequence): Assertion

isEmpty

abstract fun <T : CharSequence> isEmpty(container: AssertionContainer<T>): Assertion

isNotBlank

abstract fun <T : CharSequence> isNotBlank(container: AssertionContainer<T>): Assertion

isNotEmpty

abstract fun <T : CharSequence> isNotEmpty(container: AssertionContainer<T>): Assertion

matches

abstract fun <T : CharSequence> matches(container: AssertionContainer<T>, expected: Regex): Assertion

mismatches

abstract fun <T : CharSequence> mismatches(container: AssertionContainer<T>, expected: Regex): Assertion

startsNotWith

abstract fun <T : CharSequence> startsNotWith(container: AssertionContainer<T>, expected: CharSequence): Assertion

startsWith

abstract fun <T : CharSequence> startsWith(container: AssertionContainer<T>, expected: CharSequence): Assertion

Inheritors

DefaultCharSequenceAssertions

class DefaultCharSequenceAssertions : CharSequenceAssertions