use of org.jacoco.report.internal.html.resources.Resources 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();
}
use of org.jacoco.report.internal.html.resources.Resources 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);
}
use of org.jacoco.report.internal.html.resources.Resources 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;
}
use of org.jacoco.report.internal.html.resources.Resources 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.html.resources.Resources 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);
}
Aggregations