public void doTest(String jspName) throws Exception {
WebRequest request = new GetMethodWebRequest(jspName);
WebResponse response = runner.getResponse(request);
WebTable[] tables = response.getTables();
assertEquals("Wrong number of tables.", 1, tables.length);
assertEquals("Wrong number of columns.", 2, tables[0].getColumnCount());
assertEquals("Wrong number of rows.", 2, tables[0].getRowCount());
assertEquals("Wrong text in column 1", "decorated: ant", tables[0].getCellAsText(1, 0));
assertEquals("Wrong text in column 2", "decorated: body", tables[0].getCellAsText(1, 1));
}
Check that column body is decorated. |