Search in sources :

Example 1 with ReportStructureTestDriver

use of org.jacoco.report.ReportStructureTestDriver in project jacoco by jacoco.

the class HTMLFormatterTest method setup.

@Before
public void setup() {
    driver = new ReportStructureTestDriver();
    formatter = new HTMLFormatter();
    output = new MemoryMultiReportOutput();
}
Also used : MemoryMultiReportOutput(org.jacoco.report.MemoryMultiReportOutput) ReportStructureTestDriver(org.jacoco.report.ReportStructureTestDriver) Before(org.junit.Before)

Example 2 with ReportStructureTestDriver

use of org.jacoco.report.ReportStructureTestDriver in project jacoco by jacoco.

the class XMLGroupVisitorTest method setup.

@Before
public void setup() throws Exception {
    buffer = new StringWriter();
    support = new XMLSupport(XMLFormatter.class);
    root = new XMLDocument("report", "-//JACOCO//DTD Report 1.0//EN", "report.dtd", "UTF-8", true, buffer);
    root.attr("name", "Report");
    handler = new XMLGroupVisitor(root, null);
    driver = new ReportStructureTestDriver();
}
Also used : StringWriter(java.io.StringWriter) XMLFormatter(org.jacoco.report.xml.XMLFormatter) ReportStructureTestDriver(org.jacoco.report.ReportStructureTestDriver) Before(org.junit.Before)

Example 3 with ReportStructureTestDriver

use of org.jacoco.report.ReportStructureTestDriver in project jacoco by jacoco.

the class XMLFormatterTest method setup.

@Before
public void setup() {
    driver = new ReportStructureTestDriver();
    formatter = new XMLFormatter();
    output = new MemoryOutput();
    infos = new ArrayList<SessionInfo>();
    data = new ArrayList<ExecutionData>();
}
Also used : SessionInfo(org.jacoco.core.data.SessionInfo) MemoryOutput(org.jacoco.report.MemoryOutput) ReportStructureTestDriver(org.jacoco.report.ReportStructureTestDriver) ExecutionData(org.jacoco.core.data.ExecutionData) Before(org.junit.Before)

Example 4 with ReportStructureTestDriver

use of org.jacoco.report.ReportStructureTestDriver in project jacoco by jacoco.

the class RulesCheckerTest method setup.

@Before
public void setup() {
    checker = new RulesChecker();
    driver = new ReportStructureTestDriver();
    messages = new ArrayList<String>();
}
Also used : ReportStructureTestDriver(org.jacoco.report.ReportStructureTestDriver) Before(org.junit.Before)

Example 5 with ReportStructureTestDriver

use of org.jacoco.report.ReportStructureTestDriver in project jacoco by jacoco.

the class CSVFormatterTest method setup.

@Before
public void setup() throws Exception {
    driver = new ReportStructureTestDriver();
    formatter = new CSVFormatter();
    output = new MemoryOutput();
    visitor = formatter.createVisitor(output);
}
Also used : MemoryOutput(org.jacoco.report.MemoryOutput) ReportStructureTestDriver(org.jacoco.report.ReportStructureTestDriver) Before(org.junit.Before)

Aggregations

ReportStructureTestDriver (org.jacoco.report.ReportStructureTestDriver)6 Before (org.junit.Before)6 StringWriter (java.io.StringWriter)2 MemoryOutput (org.jacoco.report.MemoryOutput)2 ExecutionData (org.jacoco.core.data.ExecutionData)1 SessionInfo (org.jacoco.core.data.SessionInfo)1 JavaNames (org.jacoco.report.JavaNames)1 MemoryMultiReportOutput (org.jacoco.report.MemoryMultiReportOutput)1 XMLFormatter (org.jacoco.report.xml.XMLFormatter)1