Skip to content

Commit

Permalink
feat(#5): add log message for javac
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Nov 22, 2023
1 parent 7177ebf commit 68e7060
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/java/com/yegor256/JhomeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,14 @@ void findsJavaOnAnyOs() throws IOException {
*/
@Test
@EnabledForJreRange(min = JRE.JAVA_9)
void findsJavacOnAnyOs() {
void findsJavacOnAnyOs() throws IOException {
MatcherAssert.assertThat(
"javac binary file doesn't exist. If you run this test, then you should have a JDK installed",
String.format(
"javac binary file doesn't exist. If you run this test, then you should have a JDK installed. All files in bin folder: %n%s",
Files.list(new Jhome().path("bin"))
.map(Path::toString)
.collect(Collectors.joining("\n"))
),
new Jhome().javac().toFile(),
FileMatchers.anExistingFile()
);
Expand Down

0 comments on commit 68e7060

Please sign in to comment.