assertEquals("E",
support.findStr(doc, "/html/body/table/tbody/tr[5]/td[1]"));
}
private ITableItem createItem(final String name, final int count) {
final ICoverageNode node = new CoverageNodeImpl(ElementType.GROUP, name) {
{
this.classCounter = CounterImpl.getInstance(count, 0);
}
};
return new ITableItem() {
public String getLinkLabel() {
return name;
}
public String getLink(ReportOutputFolder base) {
return name + ".html";
}
public String getLinkStyle() {
return Resources.getElementStyle(node.getElementType());
}
public ICoverageNode getNode() {
return node;
}