doc / ch.tutteli.atrium.api.infix.en_GB / hasSameTextualContentAs

hasSameTextualContentAs

infix fun <T : Path> Expect<T>.hasSameTextualContentAs(targetPath: Path): Expect<T>

Expects that the subject of the assertion (a Path) has the same textual content as targetPath (using UTF-8 for encoding)

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
An Expect for the current subject of the assertion.

Since
0.13.0

infix fun <T : Path> Expect<T>.hasSameTextualContentAs(pathWithEncoding: PathWithEncoding): Expect<T>

Expects that the subject of the assertion (a Path) has the same textual content as PathWithEncoding.path in the given pathWithEncoding with the specified encodings.

Use the function withEncoding(Path, Charset, Charset) to create a PathWithEncoding.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
An Expect for the current subject of the assertion.

Since
0.13.0