|
|
@ -22,9 +22,9 @@ import java.io.FileWriter;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.PrintWriter;
|
|
|
|
import java.io.PrintWriter;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.function.Consumer;
|
|
|
|
import java.util.function.Consumer;
|
|
|
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
import org.gradle.testkit.runner.BuildResult;
|
|
|
|
import org.gradle.testkit.runner.BuildResult;
|
|
|
|
import org.gradle.testkit.runner.GradleRunner;
|
|
|
|
import org.gradle.testkit.runner.GradleRunner;
|
|
|
@ -169,17 +169,12 @@ class TestFailuresPluginIntegrationTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private List<String> readLines(String output) {
|
|
|
|
private List<String> readLines(String output) {
|
|
|
|
List<String> lines = new ArrayList<>();
|
|
|
|
|
|
|
|
try (BufferedReader reader = new BufferedReader(new StringReader(output))) {
|
|
|
|
try (BufferedReader reader = new BufferedReader(new StringReader(output))) {
|
|
|
|
String line;
|
|
|
|
return reader.lines().collect(Collectors.toList());
|
|
|
|
while ((line = reader.readLine()) != null) {
|
|
|
|
|
|
|
|
lines.add(line);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (IOException ex) {
|
|
|
|
catch (IOException ex) {
|
|
|
|
throw new RuntimeException(ex);
|
|
|
|
throw new RuntimeException(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return lines;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|