public class MockApplication extends Application
MockFacesContext
, and providing an ExternalContext
implemented by MockExternalContext
Constructor and Description |
---|
MockApplication() |
addELContextListener, addELResolver, createComponent, getELContextListeners, getELResolver, getResourceBundle, removeELContextListener
public Object evaluateExpressionGet(FacesContext context, String expression, Class expectedType) throws ELException
evaluateExpressionGet
in class Application
ELException
public void addComponent(String componentType, String componentClass)
addComponent
in class Application
public void addConverter(Class targetClass, String converterClass)
addConverter
in class Application
public void addConverter(String converterId, String converterClass)
addConverter
in class Application
public void addValidator(String validatorId, String validatorClass)
addValidator
in class Application
public UIComponent createComponent(String componentType) throws FacesException
createComponent
in class Application
FacesException
public UIComponent createComponent(ValueBinding componentBinding, FacesContext context, String componentType) throws FacesException
createComponent
in class Application
FacesException
public Converter createConverter(Class targetClass)
createConverter
in class Application
public Converter createConverter(String converterId)
createConverter
in class Application
public MethodBinding createMethodBinding(String ref, Class[] params) throws ReferenceSyntaxException
createMethodBinding
in class Application
ReferenceSyntaxException
public Validator createValidator(String validatorId) throws FacesException
createValidator
in class Application
FacesException
public ValueBinding createValueBinding(String ref) throws ReferenceSyntaxException
createValueBinding
in class Application
ReferenceSyntaxException
public ActionListener getActionListener()
getActionListener
in class Application
public Iterator<String> getComponentTypes()
getComponentTypes
in class Application
public Iterator<String> getConverterIds()
getConverterIds
in class Application
public Iterator<Class> getConverterTypes()
getConverterTypes
in class Application
public Locale getDefaultLocale()
getDefaultLocale
in class Application
public String getDefaultRenderKitId()
getDefaultRenderKitId
in class Application
public String getMessageBundle()
getMessageBundle
in class Application
public NavigationHandler getNavigationHandler()
getNavigationHandler
in class Application
public PropertyResolver getPropertyResolver()
getPropertyResolver
in class Application
public StateManager getStateManager()
getStateManager
in class Application
public Iterator<Locale> getSupportedLocales()
getSupportedLocales
in class Application
public Iterator<String> getValidatorIds()
getValidatorIds
in class Application
public VariableResolver getVariableResolver()
getVariableResolver
in class Application
public ViewHandler getViewHandler()
getViewHandler
in class Application
public void setActionListener(ActionListener listener)
setActionListener
in class Application
public void setDefaultLocale(Locale locale)
setDefaultLocale
in class Application
public void setDefaultRenderKitId(String renderKitId)
setDefaultRenderKitId
in class Application
public void setMessageBundle(String bundle)
setMessageBundle
in class Application
public void setNavigationHandler(NavigationHandler handler)
setNavigationHandler
in class Application
public void setPropertyResolver(PropertyResolver resolver)
setPropertyResolver
in class Application
public void setStateManager(StateManager manager)
setStateManager
in class Application
public void setSupportedLocales(Collection<Locale> locales)
setSupportedLocales
in class Application
public void setVariableResolver(VariableResolver resolver)
setVariableResolver
in class Application
public void setViewHandler(ViewHandler handler)
setViewHandler
in class Application
public ExpressionFactory getExpressionFactory()
getExpressionFactory
in class Application
Copyright © 2013 Nuxeo SA. All Rights Reserved.