Class MockFaceletContext


  • public class MockFaceletContext
    extends javax.faces.view.facelets.FaceletContext
    Facelet Context Mock.
    • Constructor Detail

      • MockFaceletContext

        public MockFaceletContext​(javax.faces.context.FacesContext facesContext)
      • MockFaceletContext

        public MockFaceletContext()
      • MockFaceletContext

        public MockFaceletContext​(javax.faces.context.FacesContext facesContext,
                                  Map<String,​Object> attributes)
    • Method Detail

      • getFacesContext

        public javax.faces.context.FacesContext getFacesContext()
        Specified by:
        getFacesContext in class javax.faces.view.facelets.FaceletContext
      • generateUniqueId

        public String generateUniqueId​(String base)
        Specified by:
        generateUniqueId in class javax.faces.view.facelets.FaceletContext
      • getExpressionFactory

        public javax.el.ExpressionFactory getExpressionFactory()
        Specified by:
        getExpressionFactory in class javax.faces.view.facelets.FaceletContext
      • setVariableMapper

        public void setVariableMapper​(javax.el.VariableMapper varMapper)
        Specified by:
        setVariableMapper in class javax.faces.view.facelets.FaceletContext
      • setFunctionMapper

        public void setFunctionMapper​(javax.el.FunctionMapper fnMapper)
        Specified by:
        setFunctionMapper in class javax.faces.view.facelets.FaceletContext
      • setAttribute

        public void setAttribute​(String name,
                                 Object value)
        Specified by:
        setAttribute in class javax.faces.view.facelets.FaceletContext
      • getAttribute

        public Object getAttribute​(String name)
        Specified by:
        getAttribute in class javax.faces.view.facelets.FaceletContext
      • includeFacelet

        public void includeFacelet​(javax.faces.component.UIComponent parent,
                                   String relativePath)
        Specified by:
        includeFacelet in class javax.faces.view.facelets.FaceletContext
      • includeFacelet

        public void includeFacelet​(javax.faces.component.UIComponent parent,
                                   URL absolutePath)
        Specified by:
        includeFacelet in class javax.faces.view.facelets.FaceletContext
      • getELResolver

        public javax.el.ELResolver getELResolver()
        Specified by:
        getELResolver in class javax.el.ELContext
      • getFunctionMapper

        public javax.el.FunctionMapper getFunctionMapper()
        Specified by:
        getFunctionMapper in class javax.el.ELContext
      • getVariableMapper

        public javax.el.VariableMapper getVariableMapper()
        Specified by:
        getVariableMapper in class javax.el.ELContext