Package de.cuioss.test.jsf.mocks
Class CuiMockViewHandler
- java.lang.Object
-
- javax.faces.application.ViewHandler
-
- org.apache.myfaces.test.mock.MockViewHandler
-
- org.apache.myfaces.test.mock.MockViewHandler20
-
- de.cuioss.test.jsf.mocks.CuiMockViewHandler
-
public class CuiMockViewHandler extends org.apache.myfaces.test.mock.MockViewHandler20
In addition toMockViewHandler20this extension provides a mockedgetViewDeclarationLanguage(FacesContext, String)usingEasyMockand a method for dynamically adding Composite-Component:registerCompositeComponent(String, String, UIComponent)Technically they have not other use but being defined.- Author:
- Oliver Wolff
-
-
Field Summary
-
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, DISABLE_FACELET_JSF_VIEWHANDLER_PARAM_NAME, FACELETS_BUFFER_SIZE_PARAM_NAME, FACELETS_DECORATORS_PARAM_NAME, FACELETS_LIBRARIES_PARAM_NAME, FACELETS_REFRESH_PERIOD_PARAM_NAME, FACELETS_SKIP_COMMENTS_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description CuiMockViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewDeclarationLanguagegetViewDeclarationLanguage(FacesContext context, String viewId)voidregisterCompositeComponent(String libraryName, String tagName, UIComponent uiComponent)-
Methods inherited from class org.apache.myfaces.test.mock.MockViewHandler
calculateLocale, calculateRenderKitId, createView, getActionURL, getResourceURL, getWebsocketURL, renderView, restoreView, writeState
-
Methods inherited from class javax.faces.application.ViewHandler
addProtectedView, calculateCharacterEncoding, deriveLogicalViewId, deriveViewId, getProtectedViewsUnmodifiable, getRedirectURL, getViews, getViews, initView, removeProtectedView
-
-
-
-
Constructor Detail
-
CuiMockViewHandler
public CuiMockViewHandler()
-
-
Method Detail
-
getViewDeclarationLanguage
public ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context, String viewId)
- Overrides:
getViewDeclarationLanguagein classViewHandler
-
registerCompositeComponent
public void registerCompositeComponent(String libraryName, String tagName, UIComponent uiComponent)
- Parameters:
libraryName- must not be nulltagName- must not be nulluiComponent- must not be null
-
-