assertNull(response.getRedirectURL());
}
public void testParamConfigs() throws Exception {
DefaultDispatcher dispatcher = new DefaultDispatcher(module1);
DynamicDispatchConfig dispatch = new DynamicDispatchConfig("/path", false);
TestResponse response = new TestResponse(false);
dispatch.addParam("foo", "bar");
dispatcher.dispatch(request, response, dispatch);
assertEquals("/path?foo=bar", request.getRecentRequestDispatchPath());
assertNull(response.getRedirectURL());
dispatch.addParam("foo2", "bar2");
dispatcher.dispatch(request, response, dispatch);
assertEquals("/path?foo=bar&foo2=bar2", request.getRecentRequestDispatchPath());
assertNull(response.getRedirectURL());
}