Description
Porting JAMon integration to Wicket 1.4 test JamonMonitoredWebRequestCycleTest (a WicketStuff class) fails do I discovered a double invocation that seems a bug. Explanation follows.
MockWebApplication.processRequestCycle(WebRequestCycle) method calls
cycle.request();
then
cycle.detach();
but cycle.detach() is also called inside cycle.request() resulting in a double invocation.
public void processRequestCycle(WebRequestCycle cycle)
{
try
{
cycle.request();
if (cycle.wasHandled() == false)
cycle.detach(); // <== second invocation, I would remove it
createRequestCycle();
parametersForNextRequest.clear();
servletRequest.getParameterMap().clear();
}
finally
postProcessRequestCycle(cycle);
}