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

Quick Search    Search Deep

servletunit.struts.tests.cactus
Class TestNullPointerAction  view TestNullPointerAction download TestNullPointerAction.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.cactus.internal.AbstractCactusTestCase
              extended byorg.apache.cactus.ServletTestCase
                  extended byservletunit.struts.CactusStrutsTestCase
                      extended byservletunit.struts.tests.cactus.TestNullPointerAction
All Implemented Interfaces:
org.apache.cactus.internal.CactusTestCase, junit.framework.Test

public class TestNullPointerAction
extends servletunit.struts.CactusStrutsTestCase

Title: NullPointerActionTest

Description: Tests to confirm a NullPointerException thrown from a misbehaving action reaches the test.

Copyright: Copyright (c) 2003

Version:
1.0

Field Summary
 
Fields inherited from class servletunit.struts.CactusStrutsTestCase
actionServlet, actionServletIsInitialized, isInitialized, logger, moduleName, requestPathIsSet, requestWrapper, responseWrapper, servletMapping
 
Fields inherited from class org.apache.cactus.ServletTestCase
config, request, response, session
 
Fields inherited from class org.apache.cactus.internal.AbstractCactusTestCase
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestNullPointerAction()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void setUp()
          Sets up the test fixture for this test.
 void testNullPointer()
           
 void testNullPointerFromForm()
           
 
Methods inherited from class servletunit.struts.CactusStrutsTestCase
actionPerform, addRequestParameter, addRequestParameter, clearRequestParameters, getActionForm, getActionServlet, getActualForward, getRequest, getRequestWrapper, getResponse, getResponseWrapper, getSession, processRequest, setActionForm, setActionServlet, setConfigFile, setConfigFile, setInitParameter, setRequestPathInfo, setRequestPathInfo, setRequestWrapper, setResponseWrapper, setServletMapping, tearDown, verifyActionErrors, verifyActionMessages, verifyForward, verifyForwardPath, verifyInputForward, verifyInputTilesForward, verifyNoActionErrors, verifyNoActionMessages, verifyTilesForward
 
Methods inherited from class org.apache.cactus.ServletTestCase
createProtocolHandler
 
Methods inherited from class org.apache.cactus.internal.AbstractCactusTestCase
runBare, runBareServer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, 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
 
Methods inherited from interface org.apache.cactus.internal.CactusTestCase
runBareServer
 

Constructor Detail

TestNullPointerAction

public TestNullPointerAction()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: servletunit.struts.CactusStrutsTestCase
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 clears all other parameters.


testNullPointer

public void testNullPointer()
                     throws java.lang.Exception

testNullPointerFromForm

public void testNullPointerFromForm()
                             throws java.lang.Exception

main

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