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 FaceletContext
Facelet Context Mock.
-
-
Field Summary
-
Fields inherited from class javax.faces.view.facelets.FaceletContext
FACELET_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description MockFaceletContext()
MockFaceletContext(FacesContext facesContext)
MockFaceletContext(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()
ELResolver
getELResolver()
ExpressionFactory
getExpressionFactory()
FacesContext
getFacesContext()
FunctionMapper
getFunctionMapper()
VariableMapper
getVariableMapper()
void
includeFacelet(UIComponent parent, String relativePath)
void
includeFacelet(UIComponent parent, URL absolutePath)
void
setAttribute(String name, Object value)
void
setFunctionMapper(FunctionMapper fnMapper)
void
setVariableMapper(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(FacesContext facesContext)
-
MockFaceletContext
public MockFaceletContext()
-
MockFaceletContext
public MockFaceletContext(FacesContext facesContext, Map<String,Object> attributes)
-
-
Method Detail
-
getFacesContext
public FacesContext getFacesContext()
- Specified by:
getFacesContext
in classFaceletContext
-
generateUniqueId
public String generateUniqueId(String base)
- Specified by:
generateUniqueId
in classFaceletContext
-
getExpressionFactory
public ExpressionFactory getExpressionFactory()
- Specified by:
getExpressionFactory
in classFaceletContext
-
setVariableMapper
public void setVariableMapper(VariableMapper varMapper)
- Specified by:
setVariableMapper
in classFaceletContext
-
setFunctionMapper
public void setFunctionMapper(FunctionMapper fnMapper)
- Specified by:
setFunctionMapper
in classFaceletContext
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttribute
in classFaceletContext
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in classFaceletContext
-
includeFacelet
public void includeFacelet(UIComponent parent, String relativePath)
- Specified by:
includeFacelet
in classFaceletContext
-
includeFacelet
public void includeFacelet(UIComponent parent, URL absolutePath)
- Specified by:
includeFacelet
in classFaceletContext
-
getELResolver
public ELResolver getELResolver()
- Specified by:
getELResolver
in classELContext
-
getFunctionMapper
public FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapper
in classELContext
-
getVariableMapper
public VariableMapper getVariableMapper()
- Specified by:
getVariableMapper
in classELContext
-
-