public void doTest(String jspName) throws Exception {
WebRequest request = new GetMethodWebRequest(jspName);
ParamEncoder encoder = new ParamEncoder("table");
request.setParameter(encoder.encodeParameterName(TableTagParameters.PARAMETER_PAGE), "3");
WebResponse response = runner.getResponse(request);
if (log.isDebugEnabled())
{
log.debug(response.getText());
}
WebTable[] tables = response.getTables();
assertEquals("Wrong number of tables.", 1, tables.length);
assertNotNull("Not in page 2 as expected?", response.getElementWithID("PAGETWO"));
}
No exception when an invalid page is requested. |