Skip to content

Commit

Permalink
Adapt error message to windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Jan 31, 2024
1 parent 7e5c139 commit ef6c30b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ void testGetDependencyChangesFailsForMissingPom() throws GitAPIException, IOExce
final Path missingPomFile = Path.of("missing-pom-file");
final IllegalStateException exception = assertThrows(IllegalStateException.class,
() -> this.crawlProject(missingPomFile));
assertThat(exception.getMessage(), allOf(containsString("[FATAL] Non-readable POM"),
containsString(missingPomFile + " (No such file or directory)")));
assertThat(exception.getMessage(),
allOf(containsString("[FATAL] Non-readable POM"), containsString(missingPomFile.toString())));
}

private void writePomFile(final Path pomFile) throws IOException {
Expand Down

0 comments on commit ef6c30b

Please sign in to comment.