use of org.jacoco.report.internal.ReportOutputFolder in project jacoco by jacoco.
the class ReportPageTest method testGetLink.
@Test
public void testGetLink() throws IOException {
ReportOutputFolder base = rootFolder.subFolder("here");
assertEquals("../Test.html", page.getLink(base));
}
use of org.jacoco.report.internal.ReportOutputFolder in project jacoco by jacoco.
the class ResourcesTest method testGetLink.
@Test
public void testGetLink() {
ReportOutputFolder base = root.subFolder("f1").subFolder("f2");
assertEquals("../../jacoco-resources/test.png", resources.getLink(base, "test.png"));
}
use of org.jacoco.report.internal.ReportOutputFolder 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);
html = new HTMLElement(root.createFile("Test.html"), "UTF-8");
html.head().title();
td = html.body().table("somestyle").tr().td();
support = new HTMLSupport();
column = new BarColumn(CounterEntity.LINE, Locale.ENGLISH);
}
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);
html = new HTMLElement(root.createFile("Test.html"), "UTF-8");
html.head().title();
td = html.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 PageTestBase method setup.
protected void setup() throws Exception {
output = new MemoryMultiReportOutput();
rootFolder = new ReportOutputFolder(output);
final Resources resources = new Resources(rootFolder);
final Table table = new Table();
table.add("Element", null, new LabelColumn(), true);
context = new IHTMLReportContext() {
public ILanguageNames getLanguageNames() {
return new JavaNames();
}
public Resources getResources() {
return resources;
}
public Table getTable() {
return table;
}
public String getFooterText() {
return "CustomFooter";
}
public ILinkable getSessionsPage() {
return new LinkableStub("sessions.html", "Sessions", Styles.EL_SESSION);
}
public String getOutputEncoding() {
return "UTF-8";
}
public IIndexUpdate getIndexUpdate() {
return new IIndexUpdate() {
public void addClass(ILinkable link, long classid) {
}
};
}
public Locale getLocale() {
return Locale.ENGLISH;
}
};
support = new HTMLSupport();
}
Aggregations