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

notToBeBlank

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

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

expect("XZY").notToBeBlank()

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

fails { // because an empty string is also considered to be a blank string
    expect("").notToBeBlank()
}

Return
an Expect for the subject of this expectation.

Since
0.17.0