com.mockrunner.base
Class WebTestCase

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
HTMLOutputTestCase

public abstract class WebTestCase
extends BaseTestCase

Delegator for WebTestModule. The corresponding adapters extend this class. This class is used for the standard adapter versions, that extend BaseTestCase.


Constructor Summary
WebTestCase()
           
WebTestCase(java.lang.String arg0)
           
 
Method Summary
protected  void addRequestParameter(java.lang.String key)
          Delegates to WebTestModule.addRequestParameter(String)
protected  void addRequestParameter(java.lang.String key, java.lang.String value)
          Delegates to WebTestModule.addRequestParameter(String, String)
protected  void addRequestParameter(java.lang.String key, java.lang.String[] values)
          Delegates to WebTestModule.addRequestParameter(String, String[])
protected  java.lang.Object getRequestAttribute(java.lang.String key)
          Delegates to WebTestModule.getRequestAttribute(String)
protected  java.lang.String getRequestParameter(java.lang.String key)
          Delegates to WebTestModule.getRequestParameter(String)
protected  java.lang.Object getSessionAttribute(java.lang.String key)
          Delegates to WebTestModule.setRequestAttribute(String, Object)
protected abstract  WebTestModule getWebTestModule()
          Implemented by concrete subclasses.
protected  void setRequestAttribute(java.lang.String key, java.lang.Object value)
          Delegates to WebTestModule.setRequestAttribute(String, Object)
protected  void setSessionAttribute(java.lang.String key, java.lang.Object value)
          Delegates to WebTestModule.setSessionAttribute(String, Object)
 
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, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

WebTestCase

public WebTestCase()

WebTestCase

public WebTestCase(java.lang.String arg0)
Method Detail

getWebTestModule

protected abstract WebTestModule getWebTestModule()
Implemented by concrete subclasses.


addRequestParameter

protected void addRequestParameter(java.lang.String key)
Delegates to WebTestModule.addRequestParameter(String)


addRequestParameter

protected void addRequestParameter(java.lang.String key,
                                   java.lang.String value)
Delegates to WebTestModule.addRequestParameter(String, String)


addRequestParameter

protected void addRequestParameter(java.lang.String key,
                                   java.lang.String[] values)
Delegates to WebTestModule.addRequestParameter(String, String[])


getRequestParameter

protected java.lang.String getRequestParameter(java.lang.String key)
Delegates to WebTestModule.getRequestParameter(String)


getRequestAttribute

protected java.lang.Object getRequestAttribute(java.lang.String key)
Delegates to WebTestModule.getRequestAttribute(String)


setRequestAttribute

protected void setRequestAttribute(java.lang.String key,
                                   java.lang.Object value)
Delegates to WebTestModule.setRequestAttribute(String, Object)


getSessionAttribute

protected java.lang.Object getSessionAttribute(java.lang.String key)
Delegates to WebTestModule.setRequestAttribute(String, Object)


setSessionAttribute

protected void setSessionAttribute(java.lang.String key,
                                   java.lang.Object value)
Delegates to WebTestModule.setSessionAttribute(String, Object)