* Check that parameter RENDER has three values: one is the render
* parameter, while the other two are appended in the dispatch URI.
* @param request the servlet reqeust.
*/
private TestResult checkAddedSameNameParameter(ServletRequest request) {
TestResult result = new TestResult();
result.setDescription("Ensure query parameters with the same name "
+ "added during dispatching are attached to the request "
+ "as well as render parameters.");
String[] values = request.getParameterValues(KEY_RENDER);
String[] expected = new String[] {
VALUE_ADDED1, VALUE_ADDED2, VALUE_RENDER, };
if (Arrays.equals(values, expected)) {
result.setReturnCode(TestResult.PASSED);
} else {
TestUtils.failOnAssertion("parameter", values, expected, result);
}
return result;
}