wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Donnerstag (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WICKET-129) WicketTester cannot test applications with custom WebRequestCycle
Date Fri, 01 Dec 2006 14:37:22 GMT
    [ http://issues.apache.org/jira/browse/WICKET-129?page=comments#action_12454917 ] 
            
Juergen Donnerstag commented on WICKET-129:
-------------------------------------------

2.0 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

        

Mime
View raw message