Package org.joinfaces.test.mock
Class JsfMock
- java.lang.Object
-
- org.joinfaces.test.mock.JsfMock
-
public class JsfMock extends Object
JSF Mock. Taken from https://ovaraksin.blogspot.com.br/2014/03/set-up-jsf-environment-for-junit-tests.html
-
-
Constructor Summary
Constructors Constructor Description JsfMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Application
getMockApplication()
ExternalContext
getMockExternalContext()
MockFaceletContext
getMockFaceletContext()
MockFaceletHandler
getMockFaceletHandler()
FacesContext
getMockFacesContext()
HttpServletRequest
getMockHttpServletRequest()
HttpServletResponse
getMockHttpServletResponse()
HttpSession
getMockHttpSession()
MockServletContext
getMockServletContext()
Tag
getMockTag()
MockTagAttributes
getMockTagAttributes()
TagConfig
getMockTagConfig()
Map<String,Object>
getMockViewMap()
UIViewRoot
getMockViewRoot()
void
init(ApplicationContext applicationContext)
void
release()
-
-
-
Method Detail
-
release
public void release()
-
init
public void init(ApplicationContext applicationContext)
-
getMockFacesContext
public FacesContext getMockFacesContext()
-
getMockViewRoot
public UIViewRoot getMockViewRoot()
-
getMockApplication
public Application getMockApplication()
-
getMockExternalContext
public ExternalContext getMockExternalContext()
-
getMockHttpSession
public HttpSession getMockHttpSession()
-
getMockHttpServletRequest
public HttpServletRequest getMockHttpServletRequest()
-
getMockHttpServletResponse
public HttpServletResponse getMockHttpServletResponse()
-
getMockServletContext
public MockServletContext getMockServletContext()
-
getMockTagConfig
public TagConfig getMockTagConfig()
-
getMockFaceletHandler
public MockFaceletHandler getMockFaceletHandler()
-
getMockTag
public Tag getMockTag()
-
getMockTagAttributes
public MockTagAttributes getMockTagAttributes()
-
getMockFaceletContext
public MockFaceletContext getMockFaceletContext()
-
-