void (String filePath, String expectedText) { try { assertSameLinesWithFile(filePath, expectedText); } catch (FileComparisonFailure e) { String expected = e.getExpected(); String actual = e.getActual(); assertUnorderedElementsAreEqual(expected.split("\n"), actual.split("\n")); } }