public void doTest(String jspName) throws Exception {
// test keep
WebRequest request = new GetMethodWebRequest(jspName);
WebResponse response = runner.getResponse(request);
if (log.isDebugEnabled())
{
log.debug(response.getText());
}
WebTable[] tables = response.getTables();
assertEquals("Expected one table", 1, tables.length);
assertEquals("Header from resource is not valid.", "foo bundle prefixed", tables[0].getCellAsText(0, 0));
assertEquals("Header from resource is not valid.", "baz bundle prefixed", tables[0].getCellAsText(0, 1));
assertEquals("Header from resource is not valid.", "camel bundle prefixed", tables[0].getCellAsText(0, 2));
assertEquals("Missing resource should generate the ???missing??? header.", "???missing???", tables[0]
.getCellAsText(0, 3));
}
Test that headers are correctly removed. |