Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

servletunit.struts.tests
Class TestMessageAction  view TestMessageAction download TestMessageAction.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byservletunit.struts.MockStrutsTestCase
              extended byservletunit.struts.tests.TestMessageAction
All Implemented Interfaces:
junit.framework.Test

public class TestMessageAction
extends servletunit.struts.MockStrutsTestCase


Field Summary
 
Fields inherited from class servletunit.struts.MockStrutsTestCase
actionPath, actionServlet, actionServletIsInitialized, config, context, isInitialized, logger, registrations, request, requestPathSet, requestWrapper, response, responseWrapper
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestMessageAction(java.lang.String testName)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
          Sets up the test fixture for this test.
 void testExpectedMessagesNoneExist()
           
 void testMessageExists()
           
 void testMessageExistsExpectedNone()
           
 void testMessageMismatch()
           
 void testNoMessages()
           
 void testVerifiesComplexErrorMessageScenario()
           
 
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, tearDown, 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
 

Constructor Detail

TestMessageAction

public TestMessageAction(java.lang.String testName)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: servletunit.struts.MockStrutsTestCase
Sets up the test fixture for this test. This method creates an instance of the ActionServlet, initializes it to validate forms and turn off debugging, and creates a mock HttpServletRequest and HttpServletResponse object to use in this test.


testNoMessages

public void testNoMessages()

testMessageExists

public void testMessageExists()

testMessageExistsExpectedNone

public void testMessageExistsExpectedNone()

testMessageMismatch

public void testMessageMismatch()

testExpectedMessagesNoneExist

public void testExpectedMessagesNoneExist()

testVerifiesComplexErrorMessageScenario

public void testVerifiesComplexErrorMessageScenario()

main

public static void main(java.lang.String[] args)