java.lang.Object
org.apache.wicket.mock.MockPageManager
- All Implemented Interfaces:
IPageManager
Simple
IPageManager
used for testing.- Author:
- Matej Knopp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all pages.void
destroy()
Destroy when application is destroyed.void
detach()
Detach at end of request.getPage
(int id) Get a pageGet the storage of pages, optional.void
removePage
(IManageablePage page) Remove a pageboolean
Is versioning of pages supported, seeIPageStore.supportsVersioning()
.void
touchPage
(IManageablePage page) Add a page.void
untouchPage
(IManageablePage page) Marks page as non-changed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.page.IPageManager
end
-
Constructor Details
-
MockPageManager
public MockPageManager()
-
-
Method Details
-
supportsVersioning
Description copied from interface:IPageManager
Is versioning of pages supported, seeIPageStore.supportsVersioning()
.- Specified by:
supportsVersioning
in interfaceIPageManager
- Returns:
true
if versioning is supported
-
destroy
Description copied from interface:IPageManager
Destroy when application is destroyed.- Specified by:
destroy
in interfaceIPageManager
-
getPage
Description copied from interface:IPageManager
Get a page- Specified by:
getPage
in interfaceIPageManager
- Parameters:
id
- id of page- Returns:
- page, may be
null
-
removePage
Description copied from interface:IPageManager
Remove a page- Specified by:
removePage
in interfaceIPageManager
- Parameters:
page
- page to remove
-
touchPage
Description copied from interface:IPageManager
Add a page.- Specified by:
touchPage
in interfaceIPageManager
- Parameters:
page
- page to add
-
clear
Description copied from interface:IPageManager
Clear all pages.- Specified by:
clear
in interfaceIPageManager
-
untouchPage
Description copied from interface:IPageManager
Marks page as non-changed. Could be used in Ajax requests to avoid storing the page if no changes have happened.- Specified by:
untouchPage
in interfaceIPageManager
- Parameters:
page
- the page that should not be stored in the page stores at the end of the request.
-
detach
Description copied from interface:IPageManager
Detach at end of request.- Specified by:
detach
in interfaceIPageManager
-
getPageStore
Description copied from interface:IPageManager
Get the storage of pages, optional.- Specified by:
getPageStore
in interfaceIPageManager
- Returns:
- store or
null
-