public void doTest(String jspName) throws Exception {
WebRequest request = new GetMethodWebRequest(jspName);
WebResponse response;
response = runner.getResponse(request);
WebTable[] tables = response.getTables();
assertEquals("Wrong number of tables in result.", 3, tables.length);
for (int j = 0; j < tables.length; j++)
{
assertEquals("invalid id", "html" + (j + 1), tables[j].getID());
assertEquals("Unexpected value in table cell", "bee", tables[j].getCellAsText(1, 0));
}
}
Check content and ids in generated tables. |