Package org.jacoco.report.internal.html

Examples of org.jacoco.report.internal.html.HTMLSupport


    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();
  }
View Full Code Here


    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);
  }
View Full Code Here

  private SourceNodeImpl source;

  @Before
  public void setup() throws Exception {
    htmlSupport = new HTMLSupport();
    source = new SourceNodeImpl(ElementType.SOURCEFILE, "Foo.java");
    buffer = new StringWriter();
    html = new HTMLDocument(buffer, "UTF-8");
    html.head().title();
    parent = html.body();
View Full Code Here

  }

  @Test
  public void testPageContent() throws Exception {
    page.render();
    final HTMLSupport support = new HTMLSupport();
    final Document doc = support.parse(output.getFile("Test.html"));

    // language
    assertEquals("en", support.findStr(doc, "/html/@lang"));

    // style sheet
    assertEquals(".resources/report.css", support.findStr(doc,
        "/html/head/link[@rel='stylesheet']/@href"));

    // bread crumb
    assertEquals("Report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/text()"));
    assertEquals("Report.html", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@href"));
    assertEquals("el_report", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/a[1]/@class"));
    assertEquals("Test", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/text()"));
    assertEquals("el_group", support.findStr(doc,
        "/html/body/div[@class='breadcrumb']/span[2]/@class"));

    // Header
    assertEquals("Test", support.findStr(doc, "/html/body/h1/text()"));

    // Content
    assertEquals("Hello Test", support.findStr(doc,
        "/html/body/div[@class='testcontent']/text()"));

    // Footer
    assertEquals("CustomFooter",
        support.findStr(doc, "/html/body/div[@class='footer']/text()"));
  }
View Full Code Here

      public Locale getLocale() {
        return Locale.ENGLISH;
      }

    };
    support = new HTMLSupport();
  }
View Full Code Here

    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);
  }
View Full Code Here

    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;
  }
View Full Code Here

    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();
  }
View Full Code Here

    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);
  }
View Full Code Here

    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;
  }
View Full Code Here

TOP

Related Classes of org.jacoco.report.internal.html.HTMLSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.