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
SimpleIPageManagerused for testing.- Author:
- Matej Knopp
-
-
Constructor Summary
Constructors Constructor Description MockPageManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPage(IManageablePage page)Add a page.voiddestroy()Destroy when application is destroyed.voiddetach()Detach at end of request.IManageablePagegetPage(int id)Get a pageIPageStoregetPageStore()Get the storage of pages, optional.voidremoveAllPages()Remove all pages.voidremovePage(IManageablePage page)Remove a pagebooleansupportsVersioning()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:IPageManagerIs versionining of pages supported, seeIPageStore.supportsVersioning().- Specified by:
supportsVersioningin interfaceIPageManager- Returns:
trueif versioning is supported
-
destroy
public void destroy()
Description copied from interface:IPageManagerDestroy when application is destroyed.- Specified by:
destroyin interfaceIPageManager
-
getPage
public IManageablePage getPage(int id)
Description copied from interface:IPageManagerGet a page- Specified by:
getPagein interfaceIPageManager- Parameters:
id- id of page- Returns:
- page, may be
null
-
removePage
public void removePage(IManageablePage page)
Description copied from interface:IPageManagerRemove a page- Specified by:
removePagein interfaceIPageManager- Parameters:
page- page to remove
-
addPage
public void addPage(IManageablePage page)
Description copied from interface:IPageManagerAdd a page.- Specified by:
addPagein interfaceIPageManager- Parameters:
page- page to add
-
removeAllPages
public void removeAllPages()
Description copied from interface:IPageManagerRemove all pages.- Specified by:
removeAllPagesin interfaceIPageManager
-
detach
public void detach()
Description copied from interface:IPageManagerDetach at end of request.- Specified by:
detachin interfaceIPageManager
-
getPageStore
public IPageStore getPageStore()
Description copied from interface:IPageManagerGet the storage of pages, optional.- Specified by:
getPageStorein interfaceIPageManager- Returns:
- store or
null
-
-