Skip to content

Commit

Permalink
Use more appropriate collection assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rsynek authored and ge0ffrey committed Jul 12, 2019
1 parent 241eb45 commit cd5ad42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private static void checkOutput(Path expected, String actual) throws IOException
}

// then check line counts are the same
assertThat(actualLines).hasSize(expectedLines.size());
assertThat(actualLines).hasSameSizeAs(expectedLines);

// finally check the whole string
String expectedString = StringUtils.replace(new String(Files.readAllBytes(expected), StandardCharsets.UTF_8),
Expand Down

0 comments on commit cd5ad42

Please sign in to comment.