nl.hsac.fitnesse.junit.reportmerge.writer.JsonOverviewFileWriter Maven / Gradle / Ivy
package nl.hsac.fitnesse.junit.reportmerge.writer;
import nl.hsac.fitnesse.junit.reportmerge.TestReportHtml;
import java.io.File;
import java.io.PrintWriter;
import java.util.List;
import java.util.function.Function;
public class JsonOverviewFileWriter extends OverviewFileWriter {
protected Function jsonWriterFunction;
public JsonOverviewFileWriter(File parentDir, Function jsonWriterFunction) {
super(parentDir, "test-results.json");
this.jsonWriterFunction = jsonWriterFunction;
}
@Override
protected void writeContent(List reports) {
jsonWriterFunction.apply(pw).writeContent(reports);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy