Class ServletTestHelper

    • Constructor Detail

      • ServletTestHelper

        public ServletTestHelper​(HttpServlet testSubject)
    • Method Detail

      • testServletInit

        public void testServletInit()
                             throws ServletException
        Calls HttpServlet.init passing it the MockServletConfig
        Throws:
        ServletException
      • testServlet

        public void testServlet()
                         throws ServletException,
                                java.io.IOException
        Calls HttpServlet.service passing it the MockHttpServletRequest & MockHttpServletResponse
        Throws:
        ServletException
        java.io.IOException
      • testDoPost

        public void testDoPost()
                        throws ServletException,
                               java.io.IOException
        Throws:
        ServletException
        java.io.IOException
      • testDoGet

        public void testDoGet()
                       throws ServletException,
                              java.io.IOException
        Throws:
        ServletException
        java.io.IOException