com.mockrunner.servlet
Class ServletTestCaseAdapter

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.mockrunner.base.BaseTestCase
              extended by com.mockrunner.base.WebTestCase
                  extended by com.mockrunner.base.HTMLOutputTestCase
                      extended by com.mockrunner.servlet.ServletTestCaseAdapter
All Implemented Interfaces:
junit.framework.Test

public abstract class ServletTestCaseAdapter
extends HTMLOutputTestCase

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 com.mockrunner.base.BaseTestCase
createActionMockObjectFactory, createActionMockObjectFactory, createActionMockObjectFactory, createActionTestModule, createActionTestModule, createConnectorMockObjectFactory, createConnectorTestModule, createConnectorTestModule, createEJBMockObjectFactory, createEJBTestModule, createEJBTestModule, createJDBCMockObjectFactory, createJDBCTestModule, createJDBCTestModule, createJMSMockObjectFactory, createJMSTestModule, createJMSTestModule, createServletTestModule, createServletTestModule, createTagTestModule, createTagTestModule, createWebMockObjectFactory, createWebMockObjectFactory, createWebMockObjectFactory, getActionMockObjectFactory, getConnectorMockObjectFactory, getEJBMockObjectFactory, getJDBCMockObjectFactory, getJMSMockObjectFactory, getWebMockObjectFactory, setActionMockObjectFactory, setConnectorMockObjectFactory, setEJBMockObjectFactory, setJDBCMockObjectFactory, setJMSMockObjectFactory, setWebMockObjectFactory
 
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

ServletTestCaseAdapter

public ServletTestCaseAdapter()

ServletTestCaseAdapter

public ServletTestCaseAdapter(java.lang.String name)
Method Detail

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class BaseTestCase
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Creates the ServletTestModule. If you overwrite this method, you must call super.setUp().

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

getHTMLOutputModule

protected HTMLOutputModule getHTMLOutputModule()
Returns the ServletTestModule as HTMLOutputModule.

Specified by:
getHTMLOutputModule in class HTMLOutputTestCase
Returns:
the HTMLOutputModule

getServletTestModule

protected ServletTestModule getServletTestModule()
Gets the ServletTestModule.

Returns:
the ServletTestModule

setServletTestModule

protected void setServletTestModule(ServletTestModule servletTestModule)
Sets the ServletTestModule.

Parameters:
servletTestModule - the ServletTestModule

setServlet

protected void setServlet(javax.servlet.http.HttpServlet servlet)
Delegates to ServletTestModule.setServlet(HttpServlet)


setServlet

protected void setServlet(javax.servlet.http.HttpServlet servlet,
                          boolean doInit)
Delegates to ServletTestModule.setServlet(HttpServlet, boolean)


doGet

protected void doGet()
Delegates to ServletTestModule.doGet()


doPost

protected void doPost()
Delegates to ServletTestModule.doPost()


doHead

protected void doHead()
Delegates to ServletTestModule.doHead()


doPut

protected void doPut()
Delegates to ServletTestModule.doPut()


doDelete

protected void doDelete()
Delegates to ServletTestModule.doDelete()


doOptions

protected void doOptions()
Delegates to ServletTestModule.doOptions()


doTrace

protected void doTrace()
Delegates to ServletTestModule.doTrace()


getServlet

protected javax.servlet.http.HttpServlet getServlet()
Delegates to ServletTestModule.getServlet()


createServlet

protected javax.servlet.http.HttpServlet createServlet(java.lang.Class servletClass)
Delegates to ServletTestModule.createServlet(Class)


createFilter

protected javax.servlet.Filter createFilter(java.lang.Class filterClass)
Delegates to ServletTestModule.createFilter(Class)


addFilter

protected void addFilter(javax.servlet.Filter filter)
Delegates to ServletTestModule.addFilter(Filter)


addFilter

protected void addFilter(javax.servlet.Filter filter,
                         boolean doInit)
Delegates to ServletTestModule.addFilter(Filter, boolean)


releaseFilters

protected void releaseFilters()
Delegates to ServletTestModule.releaseFilters()


setDoChain

protected void setDoChain(boolean doChain)
Delegates to ServletTestModule.setDoChain(boolean)


doFilter

protected void doFilter()
Delegates to ServletTestModule.doFilter()


getFilteredRequest

protected javax.servlet.ServletRequest getFilteredRequest()
Delegates to ServletTestModule.getFilteredRequest()


getFilteredResponse

protected javax.servlet.ServletResponse getFilteredResponse()
Delegates to ServletTestModule.getFilteredResponse()


clearOutput

protected void clearOutput()
Delegates to ServletTestModule.clearOutput()


init

protected void init()
Delegates to ServletTestModule.init()


service

protected void service()
Delegates to ServletTestModule.service()