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, java.util.Map<java.lang.String,java.lang.Object> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateUniqueId(java.lang.String base)
java.lang.Object
getAttribute(java.lang.String name)
java.util.Map<java.lang.String,java.lang.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, java.lang.String relativePath)
void
includeFacelet(javax.faces.component.UIComponent parent, java.net.URL absolutePath)
void
setAttribute(java.lang.String name, java.lang.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
-
-
-
-
Constructor Detail
-
MockFaceletContext
public MockFaceletContext(javax.faces.context.FacesContext facesContext)
-
MockFaceletContext
public MockFaceletContext()
-
MockFaceletContext
public MockFaceletContext(javax.faces.context.FacesContext facesContext, java.util.Map<java.lang.String,java.lang.Object> attributes)
-
-
Method Detail
-
getFacesContext
public javax.faces.context.FacesContext getFacesContext()
- Specified by:
getFacesContext
in classjavax.faces.view.facelets.FaceletContext
-
generateUniqueId
public java.lang.String generateUniqueId(java.lang.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(java.lang.String name, java.lang.Object value)
- Specified by:
setAttribute
in classjavax.faces.view.facelets.FaceletContext
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in classjavax.faces.view.facelets.FaceletContext
-
includeFacelet
public void includeFacelet(javax.faces.component.UIComponent parent, java.lang.String relativePath)
- Specified by:
includeFacelet
in classjavax.faces.view.facelets.FaceletContext
-
includeFacelet
public void includeFacelet(javax.faces.component.UIComponent parent, java.net.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
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
-
-