You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Assigned) (JIRA)" <ji...@apache.org> on 2012/04/02 15:49:24 UTC

[jira] [Assigned] (WICKET-4027) Consider dropping MockPageManager and use mock IPageStore instead

     [ https://issues.apache.org/jira/browse/WICKET-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reassigned WICKET-4027:
---------------------------------------

    Assignee:     (was: Martin Grigorov)
    
> Consider dropping MockPageManager and use mock IPageStore instead
> -----------------------------------------------------------------
>
>                 Key: WICKET-4027
>                 URL: https://issues.apache.org/jira/browse/WICKET-4027
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5-RC7
>            Reporter: Martin Grigorov
>         Attachments: WICKET-4027-2.patch
>
>
> Currently WicketTester setups custom IPageManager (MockPageManager) which has several problems:
> 1) it saves stateless pages - touchPage(statelessPage) shouldn't be stored
> 2) it calls #detach() for all pages ever stored in the map. it should call it only on the pages stored in the last request.
> If we fix these problems then we are going to reimplement the default IPageManager (StorePageManager). So I suggest to drop MockPageManager and setup inmemory IPageStore behind it instead. This way we can test PageStoreBehavior as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira