Package org.jacoco.report.internal.html

Examples of org.jacoco.report.internal.html.HTMLSupport.findStr()


    // 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


    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

    final HTMLSupport support = new HTMLSupport();
    final Document doc = support.parse(output.getFile("Test.html"));

    // The elements in Column 1 are sorted in forward order:
    assertEquals("sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@class"));
    assertEquals("a",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@id"));
    assertEquals("a2",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]/@id"));
    assertEquals("a3",
View Full Code Here

    // The elements in Column 1 are sorted in forward order:
    assertEquals("sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@class"));
    assertEquals("a",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@id"));
    assertEquals("a2",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]/@id"));
    assertEquals("a3",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]/@id"));
    assertEquals("a0",
View Full Code Here

    assertEquals("sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@class"));
    assertEquals("a",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@id"));
    assertEquals("a2",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]/@id"));
    assertEquals("a3",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]/@id"));
    assertEquals("a0",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]/@id"));
    assertEquals("a1",
View Full Code Here

    assertEquals("a",
        support.findStr(doc, "/html/body/table/thead/tr/td[1]/@id"));
    assertEquals("a2",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]/@id"));
    assertEquals("a3",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]/@id"));
    assertEquals("a0",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]/@id"));
    assertEquals("a1",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]/@id"));
View Full Code Here

    assertEquals("a2",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[1]/@id"));
    assertEquals("a3",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]/@id"));
    assertEquals("a0",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]/@id"));
    assertEquals("a1",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]/@id"));

    // The elements in Column 2 are sorted in reverse order:
    assertEquals("sortable",
View Full Code Here

    assertEquals("a3",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[1]/@id"));
    assertEquals("a0",
        support.findStr(doc, "/html/body/table/tbody/tr[3]/td[1]/@id"));
    assertEquals("a1",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]/@id"));

    // The elements in Column 2 are sorted in reverse order:
    assertEquals("sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@class"));
    assertEquals("b",
View Full Code Here

    assertEquals("a1",
        support.findStr(doc, "/html/body/table/tbody/tr[4]/td[1]/@id"));

    // The elements in Column 2 are sorted in reverse order:
    assertEquals("sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@class"));
    assertEquals("b",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@id"));
    assertEquals("b1",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[2]/@id"));
    assertEquals("b0",
View Full Code Here

    // The elements in Column 2 are sorted in reverse order:
    assertEquals("sortable",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@class"));
    assertEquals("b",
        support.findStr(doc, "/html/body/table/thead/tr/td[2]/@id"));
    assertEquals("b1",
        support.findStr(doc, "/html/body/table/tbody/tr[1]/td[2]/@id"));
    assertEquals("b0",
        support.findStr(doc, "/html/body/table/tbody/tr[2]/td[2]/@id"));
    assertEquals("b3",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.