doc / ch.tutteli.atrium.api.fluent.en_GB / isNotBlank

isNotBlank

fun <T : CharSequence> Expect<T>.isNotBlank(): Expect<T> (source)

Expects that the subject of this expectation (a CharSequence) CharSequence.kotlin.text.isNotBlank.

expect("XZY").isNotBlank()

fails {
    expect(" ").isNotBlank()
}

fails { // because subject is empty but contains no whitespaces
    expect("").isNotBlank()
}

Return
an Expect for the subject of this expectation.