assertk / assertk.assertions / hasText

hasText

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

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