org.apache.myfaces.test.mock
Class MockApplication

java.lang.Object
  extended by javax.faces.application.Application
      extended by org.apache.myfaces.test.mock.MockApplication
Direct Known Subclasses:
MockApplication12

public class MockApplication
extends javax.faces.application.Application

Mock implementation of Application.

$Id$

Since:
1.0.0

Constructor Summary
MockApplication()
          Construct a default instance.
 
Method Summary
 void addComponent(String componentType, String componentClass)
          
 void addConverter(Class targetClass, String converterClass)
          
 void addConverter(String converterId, String converterClass)
          
 void addValidator(String validatorId, String validatorClass)
          
 javax.faces.component.UIComponent createComponent(String componentType)
          
 javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding componentBinding, javax.faces.context.FacesContext context, String componentType)
          
 javax.faces.convert.Converter createConverter(Class targetClass)
          
 javax.faces.convert.Converter createConverter(String converterId)
          
 javax.faces.el.MethodBinding createMethodBinding(String ref, Class[] params)
          
 javax.faces.validator.Validator createValidator(String validatorId)
          
 javax.faces.el.ValueBinding createValueBinding(String ref)
          
 javax.faces.event.ActionListener getActionListener()
          
 Iterator getComponentTypes()
          
 Iterator getConverterIds()
          
 Iterator getConverterTypes()
          
 Locale getDefaultLocale()
          
 String getDefaultRenderKitId()
          
 String getMessageBundle()
          
 javax.faces.application.NavigationHandler getNavigationHandler()
          
 javax.faces.el.PropertyResolver getPropertyResolver()
          
 javax.faces.application.StateManager getStateManager()
          
 Iterator getSupportedLocales()
          
 Iterator getValidatorIds()
          
 javax.faces.el.VariableResolver getVariableResolver()
          
 javax.faces.application.ViewHandler getViewHandler()
          
 void setActionListener(javax.faces.event.ActionListener actionListener)
          
 void setDefaultLocale(Locale defaultLocale)
          
 void setDefaultRenderKitId(String defaultRenderKitId)
          
 void setMessageBundle(String messageBundle)
          
 void setNavigationHandler(javax.faces.application.NavigationHandler navigationHandler)
          
 void setPropertyResolver(javax.faces.el.PropertyResolver propertyResolver)
          
 void setStateManager(javax.faces.application.StateManager stateManager)
          
 void setSupportedLocales(Collection supportedLocales)
          
 void setVariableResolver(javax.faces.el.VariableResolver variableResolver)
          
 void setViewHandler(javax.faces.application.ViewHandler viewHandler)
          
 
Methods inherited from class javax.faces.application.Application
addBehavior, addDefaultValidatorId, addELContextListener, addELResolver, createBehavior, createComponent, createComponent, createComponent, createComponent, evaluateExpressionGet, getBehaviorIds, getDefaultValidatorInfo, getELContextListeners, getELResolver, getExpressionFactory, getProjectStage, getResourceBundle, getResourceHandler, publishEvent, publishEvent, removeELContextListener, setResourceHandler, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockApplication

public MockApplication()

Construct a default instance.

Method Detail

getActionListener

public javax.faces.event.ActionListener getActionListener()

Specified by:
getActionListener in class javax.faces.application.Application

setActionListener

public void setActionListener(javax.faces.event.ActionListener actionListener)

Specified by:
setActionListener in class javax.faces.application.Application

getDefaultLocale

public Locale getDefaultLocale()

Specified by:
getDefaultLocale in class javax.faces.application.Application

setDefaultLocale

public void setDefaultLocale(Locale defaultLocale)

Specified by:
setDefaultLocale in class javax.faces.application.Application

getDefaultRenderKitId

public String getDefaultRenderKitId()

Specified by:
getDefaultRenderKitId in class javax.faces.application.Application

setDefaultRenderKitId

public void setDefaultRenderKitId(String defaultRenderKitId)

Specified by:
setDefaultRenderKitId in class javax.faces.application.Application

getMessageBundle

public String getMessageBundle()

Specified by:
getMessageBundle in class javax.faces.application.Application

setMessageBundle

public void setMessageBundle(String messageBundle)

Specified by:
setMessageBundle in class javax.faces.application.Application

getNavigationHandler

public javax.faces.application.NavigationHandler getNavigationHandler()

Specified by:
getNavigationHandler in class javax.faces.application.Application

setNavigationHandler

public void setNavigationHandler(javax.faces.application.NavigationHandler navigationHandler)

Specified by:
setNavigationHandler in class javax.faces.application.Application

getPropertyResolver

public javax.faces.el.PropertyResolver getPropertyResolver()

Specified by:
getPropertyResolver in class javax.faces.application.Application

setPropertyResolver

public void setPropertyResolver(javax.faces.el.PropertyResolver propertyResolver)

Specified by:
setPropertyResolver in class javax.faces.application.Application

getStateManager

public javax.faces.application.StateManager getStateManager()

Specified by:
getStateManager in class javax.faces.application.Application

setStateManager

public void setStateManager(javax.faces.application.StateManager stateManager)

Specified by:
setStateManager in class javax.faces.application.Application

getSupportedLocales

public Iterator getSupportedLocales()

Specified by:
getSupportedLocales in class javax.faces.application.Application

setSupportedLocales

public void setSupportedLocales(Collection supportedLocales)

Specified by:
setSupportedLocales in class javax.faces.application.Application

getVariableResolver

public javax.faces.el.VariableResolver getVariableResolver()

Specified by:
getVariableResolver in class javax.faces.application.Application

setVariableResolver

public void setVariableResolver(javax.faces.el.VariableResolver variableResolver)

Specified by:
setVariableResolver in class javax.faces.application.Application

getViewHandler

public javax.faces.application.ViewHandler getViewHandler()

Specified by:
getViewHandler in class javax.faces.application.Application

setViewHandler

public void setViewHandler(javax.faces.application.ViewHandler viewHandler)

Specified by:
setViewHandler in class javax.faces.application.Application

addComponent

public void addComponent(String componentType,
                         String componentClass)

Specified by:
addComponent in class javax.faces.application.Application

createComponent

public javax.faces.component.UIComponent createComponent(String componentType)

Specified by:
createComponent in class javax.faces.application.Application

createComponent

public javax.faces.component.UIComponent createComponent(javax.faces.el.ValueBinding componentBinding,
                                                         javax.faces.context.FacesContext context,
                                                         String componentType)
                                                  throws javax.faces.FacesException

Specified by:
createComponent in class javax.faces.application.Application
Throws:
javax.faces.FacesException

getComponentTypes

public Iterator getComponentTypes()

Specified by:
getComponentTypes in class javax.faces.application.Application

addConverter

public void addConverter(String converterId,
                         String converterClass)

Specified by:
addConverter in class javax.faces.application.Application

addConverter

public void addConverter(Class targetClass,
                         String converterClass)

Specified by:
addConverter in class javax.faces.application.Application

createConverter

public javax.faces.convert.Converter createConverter(String converterId)

Specified by:
createConverter in class javax.faces.application.Application

createConverter

public javax.faces.convert.Converter createConverter(Class targetClass)

Specified by:
createConverter in class javax.faces.application.Application

getConverterIds

public Iterator getConverterIds()

Specified by:
getConverterIds in class javax.faces.application.Application

getConverterTypes

public Iterator getConverterTypes()

Specified by:
getConverterTypes in class javax.faces.application.Application

createMethodBinding

public javax.faces.el.MethodBinding createMethodBinding(String ref,
                                                        Class[] params)

Specified by:
createMethodBinding in class javax.faces.application.Application

createValueBinding

public javax.faces.el.ValueBinding createValueBinding(String ref)

Specified by:
createValueBinding in class javax.faces.application.Application

addValidator

public void addValidator(String validatorId,
                         String validatorClass)

Specified by:
addValidator in class javax.faces.application.Application

createValidator

public javax.faces.validator.Validator createValidator(String validatorId)

Specified by:
createValidator in class javax.faces.application.Application

getValidatorIds

public Iterator getValidatorIds()

Specified by:
getValidatorIds in class javax.faces.application.Application


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.