hasText

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

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