|
||||||||||
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.faces.util.MessagesMapTestCase
public class MessagesMapTestCase
Unit tests for MessagesMap
.
Field Summary | |
---|---|
protected MessagesMap |
map
The MessagesMap instance to be tested. |
protected MessageResources |
resources
The MessageResources instance containing the messages
used for testing. |
Constructor Summary | |
---|---|
MessagesMapTestCase(String name)
Construct a new instance of this test case. |
Method Summary | |
---|---|
void |
setUp()
Set up instance variables required by this test case. |
static junit.framework.Test |
suite()
Return the tests included in this test suite. |
void |
teaDown()
Tear down instance variables required by this test case. |
void |
testContainsKey()
Test the containsKey() method. |
void |
testGet()
Test the get() method. |
void |
testPristine()
Test a pristine instance, and all unsupported methods. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MessagesMap map
The MessagesMap
instance to be tested.
protected MessageResources resources
The MessageResources
instance containing the messages
used for testing.
Constructor Detail |
---|
public MessagesMapTestCase(String name)
Construct a new instance of this test case.
name
- Name of the test caseMethod Detail |
---|
public void setUp() throws Exception
Set up instance variables required by this test case.
setUp
in class junit.framework.TestCase
Exception
public static junit.framework.Test suite()
Return the tests included in this test suite.
public void teaDown() throws Exception
Tear down instance variables required by this test case.
Exception
public void testContainsKey() throws Exception
Test the containsKey()
method.
Exception
public void testGet() throws Exception
Test the get()
method.
Exception
public void testPristine() throws Exception
Test a pristine instance, and all unsupported methods.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |