java.lang.Object
junit.framework.Assert
junit.framework.TestCase
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: 54927 $ $Date: 2004-10-16 17:09:25 +0100 (Sat, 16 Oct 2004) $
Fields inherited from class junit.framework.TestCase |
|
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 |
aMsgs
protected ActionMessages aMsgs
anMsgs
protected ActionMessages anMsgs
msg1
protected ActionMessage msg1
msg2
protected ActionMessage msg2
msg3
protected ActionMessage msg3
msg4
protected ActionMessage msg4
msg5
protected ActionMessage msg5
TestActionMessages
public TestActionMessages(java.lang.String theName)
- Defines the testcase name for JUnit.
main
public static void main(java.lang.String[] theArgs)
- Start the tests.
suite
public static junit.framework.Test suite()
setUp
public void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
tearDown
public void tearDown()
- Description copied from class:
junit.framework.TestCase
- Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
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.