Class JsfMock


  • public class JsfMock
    extends Object
    JSF Mock. Taken from http://ovaraksin.blogspot.com.br/2014/03/set-up-jsf-environment-for-junit-tests.html
    • Constructor Detail

      • JsfMock

        public JsfMock()
    • 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()
      • getMockServletContext

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

        public javax.faces.view.facelets.TagConfig getMockTagConfig()
      • getMockTag

        public javax.faces.view.facelets.Tag getMockTag()