...

/

Assertion: assertLinesMatch()

Assertion: assertLinesMatch()

Learn how to use the assertLinesMatch() method in JUnit 5.

The assertLinesMatch() method

The assertLinesMatch() method asserts that two lists of multiple String instances match. The matching algorithm used by assertLinesMatch() is more complicated than a simple string equality check. This is because output strings are usually templated ...