JAVA-4583 Fix failing tests in the tutorials-default-jdk9-and-above job

This commit is contained in:
mikr
2021-04-13 15:45:01 +02:00
parent 8ac5625f50
commit b68e7a6727
9 changed files with 55 additions and 5 deletions

View File

@@ -101,7 +101,8 @@ class ProcessUnderstandingUnitTest {
.replace("/", File.separator));
BufferedReader output = new BufferedReader(new InputStreamReader(process.getInputStream()));
int value = Integer.parseInt(output.readLine());
String line = output.readLine();
int value = Integer.parseInt(line);
assertEquals(3, value);
}