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.3, 1.2.2, 1.2.4, 1.3, 2.0 Reporter: Martin Benda 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