public class RedirectServletTest extends BasicServletTestCaseAdapter
RedirectServlet.
Demonstrates the usage of ServletTestModule
and BasicServletTestCaseAdapter.
Demonstrates the testing of output data as string as well as parsed
HTML data (testServletOutputAsXML).| Constructor and Description |
|---|
RedirectServletTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Creates the
ServletTestModule. |
void |
testServletOutput() |
void |
testServletOutputAsXML() |
addFilter, addFilter, clearOutput, createFilter, createServlet, createServletTestModule, createServletTestModule, createWebMockObjectFactory, createWebMockObjectFactory, createWebMockObjectFactory, doDelete, doFilter, doGet, doHead, doOptions, doPost, doPut, doTrace, getFilteredRequest, getFilteredResponse, getHTMLOutputModule, getServlet, getServletTestModule, getWebMockObjectFactory, init, releaseFilters, service, setDoChain, setServlet, setServlet, setServletTestModule, setWebMockObjectFactory, tearDowngetOutput, getOutputAsBufferedReader, getOutputAsJDOMDocument, getOutputAsW3CDocument, getOutputAsWellformedXML, getWebTestModule, setCaseSensitive, verifyOutput, verifyOutputContains, verifyOutputRegularExpressionaddRequestParameter, addRequestParameter, addRequestParameter, getRequestAttribute, getRequestParameter, getSessionAttribute, setRequestAttribute, setSessionAttributepublic void setUp()
throws Exception
BasicServletTestCaseAdapterServletTestModule. If you
overwrite this method, you must call super.setUp().setUp in class BasicServletTestCaseAdapterExceptionCopyright © 2003-2015. All Rights Reserved.