|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.mockrunner.base.BaseTestCase com.mockrunner.base.WebTestCase com.mockrunner.base.HTMLOutputTestCase com.mockrunner.servlet.ServletTestCaseAdapter
public abstract class ServletTestCaseAdapter
Delegator for ServletTestModule
. You can
subclass this adapter or use ServletTestModule
directly (so your test case can use another base class).
This adapter extends BaseTestCase
.
It can be used if you want to use several modules in conjunction.
This class is generated from the ServletTestModule
and should not be edited directly.
Constructor Summary | |
---|---|
ServletTestCaseAdapter()
|
|
ServletTestCaseAdapter(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
addFilter(javax.servlet.Filter filter)
Delegates to ServletTestModule.addFilter(Filter) |
protected void |
addFilter(javax.servlet.Filter filter,
boolean doInit)
Delegates to ServletTestModule.addFilter(Filter, boolean) |
protected void |
clearOutput()
Delegates to ServletTestModule.clearOutput() |
protected javax.servlet.Filter |
createFilter(java.lang.Class filterClass)
Delegates to ServletTestModule.createFilter(Class) |
protected javax.servlet.http.HttpServlet |
createServlet(java.lang.Class servletClass)
Delegates to ServletTestModule.createServlet(Class) |
protected void |
doDelete()
Delegates to ServletTestModule.doDelete() |
protected void |
doFilter()
Delegates to ServletTestModule.doFilter() |
protected void |
doGet()
Delegates to ServletTestModule.doGet() |
protected void |
doHead()
Delegates to ServletTestModule.doHead() |
protected void |
doOptions()
Delegates to ServletTestModule.doOptions() |
protected void |
doPost()
Delegates to ServletTestModule.doPost() |
protected void |
doPut()
Delegates to ServletTestModule.doPut() |
protected void |
doTrace()
Delegates to ServletTestModule.doTrace() |
protected javax.servlet.ServletRequest |
getFilteredRequest()
Delegates to ServletTestModule.getFilteredRequest() |
protected javax.servlet.ServletResponse |
getFilteredResponse()
Delegates to ServletTestModule.getFilteredResponse() |
protected HTMLOutputModule |
getHTMLOutputModule()
Returns the ServletTestModule as
HTMLOutputModule . |
protected javax.servlet.http.HttpServlet |
getServlet()
Delegates to ServletTestModule.getServlet() |
protected ServletTestModule |
getServletTestModule()
Gets the ServletTestModule . |
protected void |
init()
Delegates to ServletTestModule.init() |
protected void |
releaseFilters()
Delegates to ServletTestModule.releaseFilters() |
protected void |
service()
Delegates to ServletTestModule.service() |
protected void |
setDoChain(boolean doChain)
Delegates to ServletTestModule.setDoChain(boolean) |
protected void |
setServlet(javax.servlet.http.HttpServlet servlet)
Delegates to ServletTestModule.setServlet(HttpServlet) |
protected void |
setServlet(javax.servlet.http.HttpServlet servlet,
boolean doInit)
Delegates to ServletTestModule.setServlet(HttpServlet, boolean) |
protected void |
setServletTestModule(ServletTestModule servletTestModule)
Sets the ServletTestModule . |
protected void |
setUp()
Creates the ServletTestModule . |
protected void |
tearDown()
|
Methods inherited from class com.mockrunner.base.HTMLOutputTestCase |
---|
getOutput, getOutputAsBufferedReader, getOutputAsJDOMDocument, getOutputAsW3CDocument, getOutputAsWellformedXML, getWebTestModule, setCaseSensitive, verifyOutput, verifyOutputContains, verifyOutputRegularExpression |
Methods inherited from class com.mockrunner.base.WebTestCase |
---|
addRequestParameter, addRequestParameter, addRequestParameter, getRequestAttribute, getRequestParameter, getSessionAttribute, setRequestAttribute, setSessionAttribute |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServletTestCaseAdapter()
public ServletTestCaseAdapter(java.lang.String name)
Method Detail |
---|
protected void tearDown() throws java.lang.Exception
tearDown
in class BaseTestCase
java.lang.Exception
protected void setUp() throws java.lang.Exception
ServletTestModule
. If you
overwrite this method, you must call super.setUp()
.
setUp
in class junit.framework.TestCase
java.lang.Exception
protected HTMLOutputModule getHTMLOutputModule()
ServletTestModule
as
HTMLOutputModule
.
getHTMLOutputModule
in class HTMLOutputTestCase
HTMLOutputModule
protected ServletTestModule getServletTestModule()
ServletTestModule
.
ServletTestModule
protected void setServletTestModule(ServletTestModule servletTestModule)
ServletTestModule
.
servletTestModule
- the ServletTestModule
protected void setServlet(javax.servlet.http.HttpServlet servlet)
ServletTestModule.setServlet(HttpServlet)
protected void setServlet(javax.servlet.http.HttpServlet servlet, boolean doInit)
ServletTestModule.setServlet(HttpServlet, boolean)
protected void doGet()
ServletTestModule.doGet()
protected void doPost()
ServletTestModule.doPost()
protected void doHead()
ServletTestModule.doHead()
protected void doPut()
ServletTestModule.doPut()
protected void doDelete()
ServletTestModule.doDelete()
protected void doOptions()
ServletTestModule.doOptions()
protected void doTrace()
ServletTestModule.doTrace()
protected javax.servlet.http.HttpServlet getServlet()
ServletTestModule.getServlet()
protected javax.servlet.http.HttpServlet createServlet(java.lang.Class servletClass)
ServletTestModule.createServlet(Class)
protected javax.servlet.Filter createFilter(java.lang.Class filterClass)
ServletTestModule.createFilter(Class)
protected void addFilter(javax.servlet.Filter filter)
ServletTestModule.addFilter(Filter)
protected void addFilter(javax.servlet.Filter filter, boolean doInit)
ServletTestModule.addFilter(Filter, boolean)
protected void releaseFilters()
ServletTestModule.releaseFilters()
protected void setDoChain(boolean doChain)
ServletTestModule.setDoChain(boolean)
protected void doFilter()
ServletTestModule.doFilter()
protected javax.servlet.ServletRequest getFilteredRequest()
ServletTestModule.getFilteredRequest()
protected javax.servlet.ServletResponse getFilteredResponse()
ServletTestModule.getFilteredResponse()
protected void clearOutput()
ServletTestModule.clearOutput()
protected void init()
ServletTestModule.init()
protected void service()
ServletTestModule.service()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |