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.", 1, tables.length);
if (log.isDebugEnabled())
{
log.debug(response.getText());
}
for (int j = 0; j < tables[0].getColumnCount(); j++)
{
assertEquals("Wrong content in table cell", "ant", tables[0].getCellAsText(1, j));
}
}
Check content in generated table. |