File tree Expand file tree Collapse file tree
lib/src/test/java/org/sonarsource/scanner/lib/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class JavaRunnerTest {
4141 void execute_shouldConsummeProcessStdOut () {
4242 JavaRunner runner = new JavaRunner (Paths .get ("java" ), JreCacheHit .DISABLED );
4343
44+ // java --version is printing to stdout
4445 assertThat (runner .execute (List .of ("--version" ), "test" , stdOut ::add )).isTrue ();
4546
4647 assertThat (stdOut ).isNotEmpty ();
@@ -51,7 +52,7 @@ void execute_shouldConsummeProcessStdOut() {
5152 void execute_shouldLogProcessStdError () {
5253 JavaRunner runner = new JavaRunner (Paths .get ("java" ), JreCacheHit .DISABLED );
5354
54- // For some reason the java process exit with 0 even with an unsupported parameter
55+ // java -version is printing to stderr
5556 assertThat (runner .execute (List .of ("-version" ), null , stdOut ::add )).isTrue ();
5657
5758 assertThat (stdOut ).isEmpty ();
You can’t perform that action at this time.
0 commit comments