public void doTest(String jspName) throws Exception {
WebRequest request = new GetMethodWebRequest(jspName);
WebResponse response = runner.getResponse(request);
if (log.isDebugEnabled())
{
log.debug(response.getText());
}
WebTable[] tables = response.getTables();
assertEquals("Wrong number of tables.", 1, tables.length);
assertEquals("Wrong content for first column", "", tables[0].getCellAsText(1, 0));
assertEquals("Wrong content for second column", "", tables[0].getCellAsText(1, 1));
assertEquals("Wrong content for third column", "null", tables[0].getCellAsText(1, 2));
}
No exception when an invalid page is requested. |