doesNotContain

fun doesNotContain(substr: String): Matcher<String?>(source)

Returns a matcher that verifies a nullable string does not contain the specified substring, using case-sensitive comparison.

Null values are considered as not containing any substring.

Return

A matcher that succeeds if the substring is absent from the string.

Parameters

substr

The substring to check for.