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

Quick Search    Search Deep

org.apache.struts.action
Class TestActionRedirect  view TestActionRedirect download TestActionRedirect.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.struts.action.TestActionRedirect
All Implemented Interfaces:
junit.framework.Test

public class TestActionRedirect
extends junit.framework.TestCase

Unit tests for the ActionRedirect class.

Version:
$Rev: 164750 $ $Date: 2005-04-26 07:23:59 +0100 (Tue, 26 Apr 2005) $

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestActionRedirect(java.lang.String s)
           
 
Method Summary
(package private) static void assertHasParameter(java.util.Map parameters, java.lang.String paramName, java.lang.String paramValue)
          Assert that the given parameters contains an entry for paramValue under the paramName key.
(package private) static int countParameters(java.util.Map parameters, java.lang.String paramName)
          Determine the number of values that are available for a specific parameter.
static junit.framework.TestSuite getSuite()
           
static void main(java.lang.String[] args)
           
 void testActionRedirectAddParameter()
          Test all addParameter methods accepting different data types.
 void testActionRedirectAddSameNameParameter()
          Test adding parameters with the same name.
 void testActionRedirectFromExistingForward()
          Test creating an ActionRedirect which copies its configuration from an existing ActionForward.
 void testActionRedirectRedirectFlag()
          Check that the redirect flag is set.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

TestActionRedirect

public TestActionRedirect(java.lang.String s)
Method Detail

getSuite

public static junit.framework.TestSuite getSuite()

main

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

testActionRedirectRedirectFlag

public void testActionRedirectRedirectFlag()
Check that the redirect flag is set.


testActionRedirectAddParameter

public void testActionRedirectAddParameter()
Test all addParameter methods accepting different data types.


testActionRedirectAddSameNameParameter

public void testActionRedirectAddSameNameParameter()
Test adding parameters with the same name.


testActionRedirectFromExistingForward

public void testActionRedirectFromExistingForward()
Test creating an ActionRedirect which copies its configuration from an existing ActionForward.


assertHasParameter

static void assertHasParameter(java.util.Map parameters,
                               java.lang.String paramName,
                               java.lang.String paramValue)
Assert that the given parameters contains an entry for paramValue under the paramName key.


countParameters

static int countParameters(java.util.Map parameters,
                           java.lang.String paramName)
Determine the number of values that are available for a specific parameter.