org.appfuse.webapp.action
Class BaseStrutsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by servletunit.struts.MockStrutsTestCase
              extended by org.appfuse.webapp.action.BaseStrutsTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
PasswordHintActionTest, SignupActionTest, UserActionTest

public abstract class BaseStrutsTestCase
extends MockStrutsTestCase

This class is extended by all ActionTests. It basically contains common methods that they might use.

View Source

Author:
Matt Raible

Field Summary
protected  WebApplicationContext ctx
           
protected  org.apache.commons.logging.Log log
           
protected  ResourceBundle rb
           
protected  User user
           
 
Fields inherited from class servletunit.struts.MockStrutsTestCase
actionPath, actionServlet, actionServletIsInitialized, config, context, isInitialized, logger, registrations, request, requestPathSet, requestWrapper, response, responseWrapper
 
Constructor Summary
BaseStrutsTestCase(String name)
           
 
Method Summary
protected  void setUp()
           
 void tearDown()
           
 
Methods inherited from class servletunit.struts.MockStrutsTestCase
actionPerform, addRequestParameter, addRequestParameter, clearRequestParameters, getActionForm, getActionServlet, getActualForward, getMockRequest, getMockResponse, getRequest, getRequestWrapper, getResponse, getResponseWrapper, getSession, setActionForm, setActionServlet, setConfigFile, setConfigFile, setContextDirectory, setInitParameter, setRequestPathInfo, setRequestPathInfo, setRequestWrapper, setResponseWrapper, setServletConfigFile, verifyActionErrors, verifyActionMessages, verifyForward, verifyForwardPath, verifyInputForward, verifyInputTilesForward, verifyNoActionErrors, verifyNoActionMessages, verifyTilesForward
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log

user

protected User user

rb

protected ResourceBundle rb

ctx

protected WebApplicationContext ctx
Constructor Detail

BaseStrutsTestCase

public BaseStrutsTestCase(String name)
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class MockStrutsTestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class MockStrutsTestCase
Throws:
Exception


Copyright � 2002-2006