use of org.jacoco.report.internal.ReportOutputFolder 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();
}
use of org.jacoco.report.internal.ReportOutputFolder 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);
}
use of org.jacoco.report.internal.ReportOutputFolder 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();
}
use of org.jacoco.report.internal.ReportOutputFolder in project jacoco by jacoco.
the class PackageSourcePageTest method setup.
@Before
@Override
public void setup() throws Exception {
super.setup();
ISourceFileCoverage src1 = new SourceFileCoverageImpl("Src1.java", "org/jacoco/example");
ISourceFileCoverage src2 = new SourceFileCoverageImpl("Src2.java", "org/jacoco/example");
node = new PackageCoverageImpl("org/jacoco/example", Collections.<IClassCoverage>emptyList(), Arrays.asList(src1, src2));
sourceLocator = new ISourceFileLocator() {
public int getTabWidth() {
return 4;
}
public Reader getSourceFile(String packageName, String fileName) throws IOException {
return fileName.equals("Src1.java") ? new StringReader("") : null;
}
};
packagePageLink = new ILinkable() {
public String getLinkStyle() {
fail();
return null;
}
public String getLinkLabel() {
fail();
return null;
}
public String getLink(ReportOutputFolder base) {
return "index.html";
}
};
}
use of org.jacoco.report.internal.ReportOutputFolder in project jacoco by jacoco.
the class ResourcesTest method setup.
@Before
public void setup() {
output = new MemoryMultiReportOutput();
root = new ReportOutputFolder(output);
resources = new Resources(root);
}
Aggregations