|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.struts.action.TestActionMessages
public class TestActionMessages
Unit tests for the org.apache.struts.action.ActionMessages
class.
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 |
---|
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 Detail |
---|
public TestActionMessages(String theName)
theName
- the testcase's name.Method Detail |
---|
public static void main(String[] theArgs)
theArgs
- the arguments. Not usedpublic static junit.framework.Test suite()
TestSuite
) that includes all methods
starting with "test"public void setUp()
setUp
in class junit.framework.TestCase
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testEmpty()
public void testNotEmpty()
public void testSizeWithOneProperty()
public void testSizeWithManyProperties()
public void testSizeAndEmptyAfterClear()
public void testGetWithNoProperty()
public void testGetForAProperty()
public void testAddMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |