assertk.assertions / hasText

hasText

fun <ERROR CLASS><File>.hasText(expected: String, charset: Charset = Charsets.UTF_8): Unit

Platform and version requirements: JVM

Asserts the file contains exactly the expected text (and nothing else).

Parameters

charset - The character set of the file, default is Charsets.UTF_8

See Also

hasBytes