Search in sources :

Example 1 with LinkableStub

use of org.jacoco.report.internal.html.LinkableStub 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();
}
Also used : ReportOutputFolder(org.jacoco.report.internal.ReportOutputFolder) Locale(java.util.Locale) HTMLSupport(org.jacoco.report.internal.html.HTMLSupport) IIndexUpdate(org.jacoco.report.internal.html.index.IIndexUpdate) Table(org.jacoco.report.internal.html.table.Table) LinkableStub(org.jacoco.report.internal.html.LinkableStub) LabelColumn(org.jacoco.report.internal.html.table.LabelColumn) ILinkable(org.jacoco.report.internal.html.ILinkable) ILanguageNames(org.jacoco.report.ILanguageNames) MemoryMultiReportOutput(org.jacoco.report.MemoryMultiReportOutput) Resources(org.jacoco.report.internal.html.resources.Resources) IHTMLReportContext(org.jacoco.report.internal.html.IHTMLReportContext) JavaNames(org.jacoco.report.JavaNames)

Aggregations

Locale (java.util.Locale)1 ILanguageNames (org.jacoco.report.ILanguageNames)1 JavaNames (org.jacoco.report.JavaNames)1 MemoryMultiReportOutput (org.jacoco.report.MemoryMultiReportOutput)1 ReportOutputFolder (org.jacoco.report.internal.ReportOutputFolder)1 HTMLSupport (org.jacoco.report.internal.html.HTMLSupport)1 IHTMLReportContext (org.jacoco.report.internal.html.IHTMLReportContext)1 ILinkable (org.jacoco.report.internal.html.ILinkable)1 LinkableStub (org.jacoco.report.internal.html.LinkableStub)1 IIndexUpdate (org.jacoco.report.internal.html.index.IIndexUpdate)1 Resources (org.jacoco.report.internal.html.resources.Resources)1 LabelColumn (org.jacoco.report.internal.html.table.LabelColumn)1 Table (org.jacoco.report.internal.html.table.Table)1