[ http://issues.apache.org/jira/browse/WICKET-129?page=comments#action_12455109 ] Juergen Donnerstag commented on WICKET-129: -------------------------------------------
1.x patch applied > WicketTester cannot test applications with custom WebRequestCycle > ----------------------------------------------------------------- > > Key: WICKET-129 > URL: http://issues.apache.org/jira/browse/WICKET-129 > Project: Wicket > Issue Type: Improvement > Components: wicket > Affects Versions: 1.2.2, 1.2.3, 2.0, 1.3, 1.2.4 > Reporter: Martin Benda > Attachments: patch-1.x.diff, patch-2.0.diff > > > MockWebApplication class should use > Session#getRequestCycleFactory#newRequestCycle(...) factory method to create > new instances of WebRequestCycle instead of using WebRequestCycle's > constructor directly. Otherwise, using the WicketTester to test a > WebApplication that creates a custom WebRequestCycle (by overriding > WebApplication#getRequestCycleFactory or Session#getRequestCycleFactory) wil > probably fail. > The attached patch replaces all occurences of "new WebRequestCycle(...)" with > the factory method call. > Regards, > Bendis -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira