org.apache.struts.action
Class TestActionMessages

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.struts.action.TestActionMessages
All Implemented Interfaces:
junit.framework.Test

public class TestActionMessages
extends junit.framework.TestCase

Unit tests for the org.apache.struts.action.ActionMessages class.

Version:
$Rev: 471754 $ $Date: 2004-10-16 12:09:25 -0400 (Sat, 16 Oct 2004) $

Field Summary
protected  org.apache.struts.action.ActionMessages aMsgs
           
protected  org.apache.struts.action.ActionMessages anMsgs
           
protected  org.apache.struts.action.ActionMessage msg1
           
protected  org.apache.struts.action.ActionMessage msg2
           
protected  org.apache.struts.action.ActionMessage msg3
           
protected  org.apache.struts.action.ActionMessage msg4
           
protected  org.apache.struts.action.ActionMessage msg5
           
 
Constructor Summary
TestActionMessages(String theName)
          Defines the testcase name for JUnit.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testAddMessages()
          Tests adding an ActionMessages object to an ActionMessages object.
 void testEmpty()
           
 void testGetForAProperty()
           
 void testGetWithNoProperty()
           
 void testNotEmpty()
           
 void testSizeAndEmptyAfterClear()
           
 void testSizeWithManyProperties()
           
 void testSizeWithOneProperty()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aMsgs

protected org.apache.struts.action.ActionMessages aMsgs

anMsgs

protected org.apache.struts.action.ActionMessages anMsgs

msg1

protected org.apache.struts.action.ActionMessage msg1

msg2

protected org.apache.struts.action.ActionMessage msg2

msg3

protected org.apache.struts.action.ActionMessage msg3

msg4

protected org.apache.struts.action.ActionMessage msg4

msg5

protected org.apache.struts.action.ActionMessage msg5
Constructor Detail

TestActionMessages

public TestActionMessages(String theName)
Defines the testcase name for JUnit.

Parameters:
theName - the testcase's name.
Method Detail

main

public static void main(String[] theArgs)
Start the tests.

Parameters:
theArgs - the arguments. Not used

suite

public static junit.framework.Test suite()
Returns:
a test suite (TestSuite) that includes all methods starting with "test"

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testEmpty

public void testEmpty()

testNotEmpty

public void testNotEmpty()

testSizeWithOneProperty

public void testSizeWithOneProperty()

testSizeWithManyProperties

public void testSizeWithManyProperties()

testSizeAndEmptyAfterClear

public void testSizeAndEmptyAfterClear()

testGetWithNoProperty

public void testGetWithNoProperty()

testGetForAProperty

public void testGetForAProperty()

testAddMessages

public void testAddMessages()
Tests adding an ActionMessages object to an ActionMessages object.



Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.