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

isNotBlank

fun <T : CharSequence> Expect<T>.isNotBlank(): Expect<T> (source)
Deprecated: Use notToBeBlank; will be removed with 1.0.0 at the latest

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.