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, getServletContextpublic void testServletInit()
throws ServletException
ServletExceptionpublic void testServlet()
throws ServletException,
java.io.IOException
ServletExceptionjava.io.IOExceptionpublic void testDoPost()
throws ServletException,
java.io.IOException
ServletExceptionjava.io.IOExceptionpublic void testDoGet()
throws ServletException,
java.io.IOException
ServletExceptionjava.io.IOExceptionCopyright © 2002 Mock Objects. All Rights Reserved.