Skip to content

Commit

Permalink
JAVA-18701 :- Minor fixes to make the project compile and tests run. (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
amit2103 authored May 21, 2024
1 parent e75f2e6 commit a7ac4c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions core-java-modules/core-java-os/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ProcessUnderstandingUnitTest {
@Test
public void givenSubProcess_whenEncounteringError_thenErrorStreamNotNull() throws IOException {
Process process = Runtime.getRuntime()
.exec("javac -cp src src\\main\\java\\com\\baeldung\\java9\\process\\ProcessCompilationError.java");
.exec("javac -cp src src\\test\\resources\\com\\baeldung\\java9\\process\\ProcessCompilationError.java");
BufferedReader error = new BufferedReader(new InputStreamReader(process.getErrorStream()));
String errorString = error.readLine();
assertNotNull(errorString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
public class ProcessCompilationError {
//This method has been written to generate error to display
//how process errorStream() can consume error
//public static void();
public static void();
}

0 comments on commit a7ac4c9

Please sign in to comment.