fun Assert<File>.hasText(expected: String, charset: Charset = Charsets.UTF_8): Unit
Asserts the file contains exactly the expected text (and nothing else).
charset - The character set of the file, default is Charsets.UTF_8
charset
See Also
hasBytes