Package org.apache.wicket.mock
Class MockPageManager
- java.lang.Object
-
- org.apache.wicket.mock.MockPageManager
-
- All Implemented Interfaces:
IPageManager
public class MockPageManager extends java.lang.Object implements IPageManager
SimpleIPageManager
used for testing.- Author:
- Matej Knopp
-
-
Constructor Summary
Constructors Constructor Description MockPageManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPage(IManageablePage page)
Add a page.void
destroy()
Destroy when application is destroyed.void
detach()
Detach at end of request.IManageablePage
getPage(int id)
Get a pageIPageStore
getPageStore()
Get the storage of pages, optional.void
removeAllPages()
Remove all pages.void
removePage(IManageablePage page)
Remove a pageboolean
supportsVersioning()
Is versionining of pages supported, seeIPageStore.supportsVersioning()
.-
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
clear, touchPage
-
-
-
-
Method Detail
-
supportsVersioning
public boolean supportsVersioning()
Description copied from interface:IPageManager
Is versionining of pages supported, seeIPageStore.supportsVersioning()
.- Specified by:
supportsVersioning
in interfaceIPageManager
- Returns:
true
if versioning is supported
-
destroy
public void destroy()
Description copied from interface:IPageManager
Destroy when application is destroyed.- Specified by:
destroy
in interfaceIPageManager
-
getPage
public IManageablePage getPage(int id)
Description copied from interface:IPageManager
Get a page- Specified by:
getPage
in interfaceIPageManager
- Parameters:
id
- id of page- Returns:
- page, may be
null
-
removePage
public void removePage(IManageablePage page)
Description copied from interface:IPageManager
Remove a page- Specified by:
removePage
in interfaceIPageManager
- Parameters:
page
- page to remove
-
addPage
public void addPage(IManageablePage page)
Description copied from interface:IPageManager
Add a page.- Specified by:
addPage
in interfaceIPageManager
- Parameters:
page
- page to add
-
removeAllPages
public void removeAllPages()
Description copied from interface:IPageManager
Remove all pages.- Specified by:
removeAllPages
in interfaceIPageManager
-
detach
public void detach()
Description copied from interface:IPageManager
Detach at end of request.- Specified by:
detach
in interfaceIPageManager
-
getPageStore
public IPageStore getPageStore()
Description copied from interface:IPageManager
Get the storage of pages, optional.- Specified by:
getPageStore
in interfaceIPageManager
- Returns:
- store or
null
-
-