Skip to content

Commit

Permalink
8262438: Stream operations on new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
evwhelan committed Mar 2, 2021
1 parent e0e5c9e commit ae1acb2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ public static void main(String[] args) throws Exception {
"LoggingFormatConsistency",
"runTest"); // Ensuring args.length is greater than 0 when test JVM starts

output.asLines().stream().filter(line -> line.startsWith("Connecting to")).forEach(System.out::println); // prints connection info from test jvm output
output.asLines()
.stream()
.filter(line -> line.startsWith("Connecting to"))
.forEach(System.out::println); // prints connection info from test jvm output

if (output.getExitValue() != 0) {
output.asLines().forEach(System.out::println);
throw new RuntimeException("Test JVM process failed");
Expand Down

0 comments on commit ae1acb2

Please sign in to comment.