Search in sources :

Example 1 with HTMLDocument

use of org.jacoco.report.internal.html.HTMLDocument in project jacoco by jacoco.

the class BarColumnTest method setup.

@Before
public void setup() throws Exception {
    output = new MemoryMultiReportOutput();
    root = new ReportOutputFolder(output);
    resources = new Resources(root);
    doc = new HTMLDocument(root.createFile("Test.html"), "UTF-8");
    doc.head().title();
    td = doc.body().table("somestyle").tr().td();
    support = new HTMLSupport();
    column = new BarColumn(CounterEntity.LINE, Locale.ENGLISH);
}
Also used : ReportOutputFolder(org.jacoco.report.internal.ReportOutputFolder) HTMLSupport(org.jacoco.report.internal.html.HTMLSupport) MemoryMultiReportOutput(org.jacoco.report.MemoryMultiReportOutput) HTMLDocument(org.jacoco.report.internal.html.HTMLDocument) Resources(org.jacoco.report.internal.html.resources.Resources) Before(org.junit.Before)

Example 2 with HTMLDocument

use of org.jacoco.report.internal.html.HTMLDocument in project jacoco by jacoco.

the class CounterColumnTest method setup.

@Before
public void setup() throws Exception {
    output = new MemoryMultiReportOutput();
    root = new ReportOutputFolder(output);
    resources = new Resources(root);
    doc = new HTMLDocument(root.createFile("Test.html"), "UTF-8");
    doc.head().title();
    td = doc.body().table("somestyle").tr().td();
    support = new HTMLSupport();
    locale = Locale.ENGLISH;
}
Also used : ReportOutputFolder(org.jacoco.report.internal.ReportOutputFolder) HTMLSupport(org.jacoco.report.internal.html.HTMLSupport) MemoryMultiReportOutput(org.jacoco.report.MemoryMultiReportOutput) HTMLDocument(org.jacoco.report.internal.html.HTMLDocument) Resources(org.jacoco.report.internal.html.resources.Resources) Before(org.junit.Before)

Example 3 with HTMLDocument

use of org.jacoco.report.internal.html.HTMLDocument in project jacoco by jacoco.

the class LabelColumnTest method setup.

@Before
public void setup() throws Exception {
    output = new MemoryMultiReportOutput();
    root = new ReportOutputFolder(output);
    resources = new Resources(root);
    doc = new HTMLDocument(root.createFile("Test.html"), "UTF-8");
    doc.head().title();
    td = doc.body().table("somestyle").tr().td();
    support = new HTMLSupport();
    column = new LabelColumn();
}
Also used : ReportOutputFolder(org.jacoco.report.internal.ReportOutputFolder) HTMLSupport(org.jacoco.report.internal.html.HTMLSupport) MemoryMultiReportOutput(org.jacoco.report.MemoryMultiReportOutput) HTMLDocument(org.jacoco.report.internal.html.HTMLDocument) Resources(org.jacoco.report.internal.html.resources.Resources) Before(org.junit.Before)

Example 4 with HTMLDocument

use of org.jacoco.report.internal.html.HTMLDocument in project jacoco by jacoco.

the class PercentageColumnTest method setup.

@Before
public void setup() throws Exception {
    output = new MemoryMultiReportOutput();
    root = new ReportOutputFolder(output);
    resources = new Resources(root);
    doc = new HTMLDocument(root.createFile("Test.html"), "UTF-8");
    doc.head().title();
    td = doc.body().table("somestyle").tr().td();
    support = new HTMLSupport();
    column = new PercentageColumn(CounterEntity.LINE, Locale.ENGLISH);
}
Also used : ReportOutputFolder(org.jacoco.report.internal.ReportOutputFolder) HTMLSupport(org.jacoco.report.internal.html.HTMLSupport) MemoryMultiReportOutput(org.jacoco.report.MemoryMultiReportOutput) HTMLDocument(org.jacoco.report.internal.html.HTMLDocument) Resources(org.jacoco.report.internal.html.resources.Resources) Before(org.junit.Before)

Example 5 with HTMLDocument

use of org.jacoco.report.internal.html.HTMLDocument in project jacoco by jacoco.

the class TableTest method setup.

@Before
public void setup() throws IOException {
    output = new MemoryMultiReportOutput();
    root = new ReportOutputFolder(output);
    resources = new Resources(root);
    doc = new HTMLDocument(root.createFile("Test.html"), "UTF-8");
    doc.head().title();
    body = doc.body();
    table = new Table();
}
Also used : ReportOutputFolder(org.jacoco.report.internal.ReportOutputFolder) MemoryMultiReportOutput(org.jacoco.report.MemoryMultiReportOutput) HTMLDocument(org.jacoco.report.internal.html.HTMLDocument) Resources(org.jacoco.report.internal.html.resources.Resources) Before(org.junit.Before)

Aggregations

HTMLDocument (org.jacoco.report.internal.html.HTMLDocument)7 Before (org.junit.Before)6 MemoryMultiReportOutput (org.jacoco.report.MemoryMultiReportOutput)5 ReportOutputFolder (org.jacoco.report.internal.ReportOutputFolder)5 HTMLSupport (org.jacoco.report.internal.html.HTMLSupport)5 Resources (org.jacoco.report.internal.html.resources.Resources)5 StringWriter (java.io.StringWriter)1 SourceNodeImpl (org.jacoco.core.internal.analysis.SourceNodeImpl)1