Package org.joinfaces.test.mock
Class MockFaceletContext
- java.lang.Object
-
- javax.el.ELContext
-
- javax.faces.view.facelets.FaceletContext
-
- org.joinfaces.test.mock.MockFaceletContext
-
public class MockFaceletContext extends javax.faces.view.facelets.FaceletContext
Facelet Context Mock.
-
-
Constructor Summary
Constructors Constructor Description MockFaceletContext()
MockFaceletContext(javax.faces.context.FacesContext facesContext)
MockFaceletContext(javax.faces.context.FacesContext facesContext, Map<String,Object> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateUniqueId(String base)
Object
getAttribute(String name)
Map<String,Object>
getAttributes()
javax.el.ELResolver
getELResolver()
javax.el.ExpressionFactory
getExpressionFactory()
javax.faces.context.FacesContext
getFacesContext()
javax.el.FunctionMapper
getFunctionMapper()
javax.el.VariableMapper
getVariableMapper()
void
includeFacelet(javax.faces.component.UIComponent parent, String relativePath)
void
includeFacelet(javax.faces.component.UIComponent parent, URL absolutePath)
void
setAttribute(String name, Object value)
void
setFunctionMapper(javax.el.FunctionMapper fnMapper)
void
setVariableMapper(javax.el.VariableMapper varMapper)
-
Methods inherited from class javax.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getEvaluationListeners, getImportHandler, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, putContext, setLocale, setPropertyResolved, setPropertyResolved
-
-
-
-
Method Detail
-
getFacesContext
public javax.faces.context.FacesContext getFacesContext()
- Specified by:
getFacesContext
in classjavax.faces.view.facelets.FaceletContext
-
generateUniqueId
public String generateUniqueId(String base)
- Specified by:
generateUniqueId
in classjavax.faces.view.facelets.FaceletContext
-
getExpressionFactory
public javax.el.ExpressionFactory getExpressionFactory()
- Specified by:
getExpressionFactory
in classjavax.faces.view.facelets.FaceletContext
-
setVariableMapper
public void setVariableMapper(javax.el.VariableMapper varMapper)
- Specified by:
setVariableMapper
in classjavax.faces.view.facelets.FaceletContext
-
setFunctionMapper
public void setFunctionMapper(javax.el.FunctionMapper fnMapper)
- Specified by:
setFunctionMapper
in classjavax.faces.view.facelets.FaceletContext
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttribute
in classjavax.faces.view.facelets.FaceletContext
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in classjavax.faces.view.facelets.FaceletContext
-
includeFacelet
public void includeFacelet(javax.faces.component.UIComponent parent, String relativePath)
- Specified by:
includeFacelet
in classjavax.faces.view.facelets.FaceletContext
-
includeFacelet
public void includeFacelet(javax.faces.component.UIComponent parent, URL absolutePath)
- Specified by:
includeFacelet
in classjavax.faces.view.facelets.FaceletContext
-
getELResolver
public javax.el.ELResolver getELResolver()
- Specified by:
getELResolver
in classjavax.el.ELContext
-
getFunctionMapper
public javax.el.FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapper
in classjavax.el.ELContext
-
getVariableMapper
public javax.el.VariableMapper getVariableMapper()
- Specified by:
getVariableMapper
in classjavax.el.ELContext
-
-