Package org.joinfaces.test.mock
Class JsfMock
java.lang.Object
org.joinfaces.test.mock.JsfMock
JSF Mock.
Taken from
https://ovaraksin.blogspot.com.br/2014/03/set-up-jsf-environment-for-junit-tests.html
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.faces.application.Application
jakarta.faces.context.ExternalContext
jakarta.faces.context.FacesContext
jakarta.servlet.http.HttpServletRequest
jakarta.servlet.http.HttpServletResponse
jakarta.servlet.http.HttpSession
org.springframework.mock.web.MockServletContext
jakarta.faces.view.facelets.Tag
jakarta.faces.view.facelets.TagConfig
jakarta.faces.component.UIViewRoot
void
init
(org.springframework.context.ApplicationContext applicationContext) void
release()
-
Constructor Details
-
JsfMock
public JsfMock()
-
-
Method Details
-
release
public void release() -
init
public void init(org.springframework.context.ApplicationContext applicationContext) -
getMockFacesContext
public jakarta.faces.context.FacesContext getMockFacesContext() -
getMockViewRoot
public jakarta.faces.component.UIViewRoot getMockViewRoot() -
getMockApplication
public jakarta.faces.application.Application getMockApplication() -
getMockExternalContext
public jakarta.faces.context.ExternalContext getMockExternalContext() -
getMockHttpSession
public jakarta.servlet.http.HttpSession getMockHttpSession() -
getMockHttpServletRequest
public jakarta.servlet.http.HttpServletRequest getMockHttpServletRequest() -
getMockHttpServletResponse
public jakarta.servlet.http.HttpServletResponse getMockHttpServletResponse() -
getMockViewMap
-
getMockServletContext
public org.springframework.mock.web.MockServletContext getMockServletContext() -
getMockTagConfig
public jakarta.faces.view.facelets.TagConfig getMockTagConfig() -
getMockFaceletHandler
-
getMockTag
public jakarta.faces.view.facelets.Tag getMockTag() -
getMockTagAttributes
-
getMockFaceletContext
-