"</tr>" +
"</tbody>" +
"</table>" +
"</root>";
Document dom = generateDOM(tableWithoutOneventCell);
XHTMLBasicTransFactory transFactory =
new XHTMLBasicTransFactory(configuration);
assertTrue("tableWithoutOneventCell(cells) failed",
!helper.tableContains(dom.getRootElement(), transFactory,
"onevent", true));
assertTrue("tableWithoutOneventCell(rows) failed",
!helper.tableContains(dom.getRootElement(), transFactory,
"onevent", false));
dom = generateDOM(tableWithOneventCell);
assertTrue("tableWithOneventCell(cells) failed",
helper.tableContains(dom.getRootElement(), transFactory,
"onevent", true));
assertTrue("tableWithOneventCell(rows) failed",
!helper.tableContains(dom.getRootElement(), transFactory,
"onevent", false));
dom = generateDOM(tableWithOneventRow);
assertTrue("tableWithOneventRow(cells) failed",
helper.tableContains(dom.getRootElement(), transFactory,
"onevent", true));
assertTrue("tableWithOneventRow(rows) failed",
helper.tableContains(dom.getRootElement(), transFactory,
"onevent", false));
}