doc / ch.tutteli.atrium.domain.creating / CharSequenceAssertions

CharSequenceAssertions

interface CharSequenceAssertions

Defines the minimum set of assertion functions and builders applicable to CharSequence, which an implementation of the domain of Atrium has to provide.

Functions

containsBuilder

abstract fun <T : CharSequence> containsBuilder(subjectProvider: SubjectProvider<T>): CharSequenceContains.Builder<T, NoOpSearchBehaviour>

containsNotBuilder

abstract fun <T : CharSequence> containsNotBuilder(subjectProvider: SubjectProvider<T>): CharSequenceContains.Builder<T, NotSearchBehaviour>

endsNotWith

abstract fun endsNotWith(subjectProvider: SubjectProvider<CharSequence>, expected: CharSequence): Assertion

endsWith

abstract fun endsWith(subjectProvider: SubjectProvider<CharSequence>, expected: CharSequence): Assertion

isEmpty

abstract fun isEmpty(subjectProvider: SubjectProvider<CharSequence>): Assertion

isNotBlank

abstract fun isNotBlank(subjectProvider: SubjectProvider<CharSequence>): Assertion

isNotEmpty

abstract fun isNotEmpty(subjectProvider: SubjectProvider<CharSequence>): Assertion

matches

abstract fun <T : CharSequence> matches(expect: Expect<T>, expected: Regex): Assertion

mismatches

abstract fun <T : CharSequence> mismatches(expect: Expect<T>, expected: Regex): Assertion

startsNotWith

abstract fun startsNotWith(subjectProvider: SubjectProvider<CharSequence>, expected: CharSequence): Assertion

startsWith

abstract fun startsWith(subjectProvider: SubjectProvider<CharSequence>, expected: CharSequence): Assertion

Inheritors

CharSequenceAssertionsBuilder

object CharSequenceAssertionsBuilder : CharSequenceAssertions

Delegates inter alia to the implementation of CharSequenceAssertions. In detail, it implements CharSequenceAssertions by delegating to charSequenceAssertions which in turn delegates to the implementation via loadSingleService.