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 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

      public Map<String,Object> getMockViewMap()
    • getMockServletContext

      public org.springframework.mock.web.MockServletContext getMockServletContext()
    • getMockTagConfig

      public jakarta.faces.view.facelets.TagConfig getMockTagConfig()
    • getMockFaceletHandler

      public MockFaceletHandler getMockFaceletHandler()
    • getMockTag

      public jakarta.faces.view.facelets.Tag getMockTag()
    • getMockTagAttributes

      public MockTagAttributes getMockTagAttributes()
    • getMockFaceletContext

      public MockFaceletContext getMockFaceletContext()