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 StringgenerateUniqueId(String base)ObjectgetAttribute(String name)Map<String,Object>getAttributes()ELResolvergetELResolver()ExpressionFactorygetExpressionFactory()FacesContextgetFacesContext()FunctionMappergetFunctionMapper()VariableMappergetVariableMapper()voidincludeFacelet(UIComponent parent, String relativePath)voidincludeFacelet(UIComponent parent, URL absolutePath)voidsetAttribute(String name, Object value)voidsetFunctionMapper(FunctionMapper fnMapper)voidsetVariableMapper(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:
 getFacesContextin classFaceletContext
 
- 
generateUniqueId
public String generateUniqueId(String base)
- Specified by:
 generateUniqueIdin classFaceletContext
 
- 
getExpressionFactory
public ExpressionFactory getExpressionFactory()
- Specified by:
 getExpressionFactoryin classFaceletContext
 
- 
setVariableMapper
public void setVariableMapper(VariableMapper varMapper)
- Specified by:
 setVariableMapperin classFaceletContext
 
- 
setFunctionMapper
public void setFunctionMapper(FunctionMapper fnMapper)
- Specified by:
 setFunctionMapperin classFaceletContext
 
- 
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
 setAttributein classFaceletContext
 
- 
getAttribute
public Object getAttribute(String name)
- Specified by:
 getAttributein classFaceletContext
 
- 
includeFacelet
public void includeFacelet(UIComponent parent, String relativePath)
- Specified by:
 includeFaceletin classFaceletContext
 
- 
includeFacelet
public void includeFacelet(UIComponent parent, URL absolutePath)
- Specified by:
 includeFaceletin classFaceletContext
 
- 
getELResolver
public ELResolver getELResolver()
- Specified by:
 getELResolverin classELContext
 
- 
getFunctionMapper
public FunctionMapper getFunctionMapper()
- Specified by:
 getFunctionMapperin classELContext
 
- 
getVariableMapper
public VariableMapper getVariableMapper()
- Specified by:
 getVariableMapperin classELContext
 
 - 
 
 -