Class MockFaceletContext

java.lang.Object
jakarta.el.ELContext
jakarta.faces.view.facelets.FaceletContext
org.joinfaces.test.mock.MockFaceletContext

public class MockFaceletContext extends jakarta.faces.view.facelets.FaceletContext
Facelet Context Mock.
  • Constructor Details

    • MockFaceletContext

      public MockFaceletContext(jakarta.faces.context.FacesContext facesContext)
    • MockFaceletContext

      public MockFaceletContext()
    • MockFaceletContext

      public MockFaceletContext(jakarta.faces.context.FacesContext facesContext, Map<String,Object> attributes)
  • Method Details

    • getFacesContext

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

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

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

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

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

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

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

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

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

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

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

      public jakarta.el.VariableMapper getVariableMapper()
      Specified by:
      getVariableMapper in class jakarta.el.ELContext
    • getAttributes

      public Map<String,Object> getAttributes()