assertEquals(testBean.getList().size(), definitionItems.size());
for (int i = 0; i < termItems.size(); i++) {
Data data = testBean.getList().get(i);
HtmlElement item = (HtmlElement) termItems.get(i);
assertEquals("dt", item.getNodeName());
assertEquals("rf-dlst-trm", item.getAttribute("class"));
assertEquals(data.getTerm(), item.asText());
}
for (int i = 0; i < definitionItems.size(); i++) {
Data data = testBean.getList().get(i);
HtmlElement item = (HtmlElement) definitionItems.get(i);
assertEquals("dd", item.getNodeName());
assertEquals("rf-dlst-dfn", item.getAttribute("class"));
assertEquals(data.getDefinition(), item.asText());
}
}