com.mockobjects.helpers
Class ServletTestHelper
public class ServletTestHelper
Sets up mock servlet objects in a common configuration.
HttpSession is attached to request, RequestDispatcher is connected to HttpSession
ServletTestHelper
public ServletTestHelper(HttpServlet testSubject)
testDoGet
public void testDoGet()
throws ServletException,
IOException
testDoPost
public void testDoPost()
throws ServletException,
IOException
testServlet
public void testServlet()
throws ServletException,
IOException
Calls HttpServlet.service passing it the MockHttpServletRequest & MockHttpServletResponse
testServletInit
public void testServletInit()
throws ServletException
Calls HttpServlet.init passing it the MockServletConfig
Copyright © 2002 Mock Objects. All Rights Reserved.