Assert.assertEquals("Wrong column header.", "Number", tables[0].getCellAsText(0, 0));
Assert.assertEquals("Wrong column content.", "3", tables[0].getCellAsText(1, 0));
Assert.assertEquals("Wrong column content.", "4", tables[0].getCellAsText(2, 0));
TableCell headerCell = tables[0].getTableCell(0, 0);
String cssClass = headerCell.getClassName();
assertEqualsIgnoreOrder(
"Wrong css attributes.",
new String[]{"sortable", "sorted", "order2"},
StringUtils.split(cssClass));
WebLink[] headerLinks = headerCell.getLinks();
Assert.assertEquals("Sorting link not found.", 1, headerLinks.length);
WebLink sortingLink = headerLinks[0];
assertEqualsIgnoreOrder(
"Wrong parameters.",
new String[]{"sort", "searchid", "dir", pageParameter},