public class ServletTestHelper extends AbstractServletTestHelper
Constructor and Description |
---|
ServletTestHelper(HttpServlet testSubject) |
Modifier and Type | Method and Description |
---|---|
void |
testDoGet() |
void |
testDoPost() |
void |
testServlet()
Calls HttpServlet.service passing it the MockHttpServletRequest & MockHttpServletResponse
|
void |
testServletInit()
Calls HttpServlet.init passing it the MockServletConfig
|
getHttpSession, getRequest, getRequestDispatcher, getResponse, getServletConfig, getServletContext
public void testServletInit() throws ServletException
ServletException
public void testServlet() throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void testDoPost() throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void testDoGet() throws ServletException, java.io.IOException
ServletException
java.io.IOException
Copyright © 2002 Mock Objects. All Rights Reserved.