Package org.joinfaces.test.mock
Class JsfMock
- java.lang.Object
-
- org.joinfaces.test.mock.JsfMock
-
public class JsfMock extends java.lang.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 javax.faces.application.Application
getMockApplication()
javax.faces.context.ExternalContext
getMockExternalContext()
MockFaceletContext
getMockFaceletContext()
MockFaceletHandler
getMockFaceletHandler()
javax.faces.context.FacesContext
getMockFacesContext()
javax.servlet.http.HttpServletRequest
getMockHttpServletRequest()
javax.servlet.http.HttpServletResponse
getMockHttpServletResponse()
javax.servlet.http.HttpSession
getMockHttpSession()
org.springframework.mock.web.MockServletContext
getMockServletContext()
javax.faces.view.facelets.Tag
getMockTag()
MockTagAttributes
getMockTagAttributes()
javax.faces.view.facelets.TagConfig
getMockTagConfig()
java.util.Map<java.lang.String,java.lang.Object>
getMockViewMap()
javax.faces.component.UIViewRoot
getMockViewRoot()
void
init(org.springframework.context.ApplicationContext applicationContext)
void
release()
-
-
-
Method Detail
-
release
public void release()
-
init
public void init(org.springframework.context.ApplicationContext applicationContext)
-
getMockFacesContext
public javax.faces.context.FacesContext getMockFacesContext()
-
getMockViewRoot
public javax.faces.component.UIViewRoot getMockViewRoot()
-
getMockApplication
public javax.faces.application.Application getMockApplication()
-
getMockExternalContext
public javax.faces.context.ExternalContext getMockExternalContext()
-
getMockHttpSession
public javax.servlet.http.HttpSession getMockHttpSession()
-
getMockHttpServletRequest
public javax.servlet.http.HttpServletRequest getMockHttpServletRequest()
-
getMockHttpServletResponse
public javax.servlet.http.HttpServletResponse getMockHttpServletResponse()
-
getMockViewMap
public java.util.Map<java.lang.String,java.lang.Object> getMockViewMap()
-
getMockServletContext
public org.springframework.mock.web.MockServletContext getMockServletContext()
-
getMockTagConfig
public javax.faces.view.facelets.TagConfig getMockTagConfig()
-
getMockFaceletHandler
public MockFaceletHandler getMockFaceletHandler()
-
getMockTag
public javax.faces.view.facelets.Tag getMockTag()
-
getMockTagAttributes
public MockTagAttributes getMockTagAttributes()
-
getMockFaceletContext
public MockFaceletContext getMockFaceletContext()
-
-