|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.Assert org.kuali.rice.test.BaseRiceTestCase org.kuali.rice.test.RiceTestCase org.kuali.rice.test.RiceInternalSuiteDataTestCase org.kuali.test.KNSTestCase org.kuali.rice.kns.util.MessageMapTest
public class MessageMapTest
This class tests the ErrorMap methods.
Field Summary | |
---|---|
private static String |
MIXED_LIST_PATTERN
|
Fields inherited from class org.kuali.rice.test.RiceTestCase |
---|
DEFAULT_TEST_HARNESS_SPRING_BEANS, failedSuiteTestName, perTestLifeCycles, SUITE_LIFE_CYCLES_FAILED, SUITE_LIFE_CYCLES_RAN, suiteLifeCycles |
Fields inherited from class org.kuali.rice.test.BaseRiceTestCase |
---|
log, method |
Constructor Summary | |
---|---|
MessageMapTest()
|
Method Summary | |
---|---|
private MessageMap |
buildReplaceErrorMap()
|
private void |
checkMessageParemeters(TypedArrayList errorMessages,
int messageIndex,
String expectedKeyConstant,
String[] expectedParameters)
|
void |
testContainsKeyMatchingPattern_mixedList_empty()
|
void |
testContainsKeyMatchingPattern_mixedList_simpleMatch()
|
void |
testContainsKeyMatchingPattern_mixedList_simpleNoMatch()
|
void |
testContainsKeyMatchingPattern_mixedList_wildcardMatch()
|
void |
testErrorCount()
Test all errors are getting added and counted correctly. |
void |
testErrorPath()
Test the error path is being prepended. |
void |
testFieldMessages()
Test messages are getting accumulated correctly for a property. |
void |
testMessageCollisions()
Verify that using the same error message multiple times correctly stores different parameters each time. |
void |
testMessageParameters()
Test message parameters are being correctly added and associated with an error message. |
void |
testPropertiesWithErrors()
Test that properties added with errors are being kept. |
void |
testPut()
ErrorMap should only allow String keys and values. |
void |
testReplace_matchingProperty_matchingKey_noParams()
|
void |
testReplace_matchingProperty_matchingKey_withParams()
|
void |
testReplace_matchingProperty_noMatchingKey()
|
void |
testReplace_noMatchingProperty()
|
void |
testReplace_testEquals()
|
Methods inherited from class org.kuali.test.KNSTestCase |
---|
getContextName, getLoadApplicationLifecycle, getModuleName, getPort, getRelativeWebappRoot, getSuiteLifecycles, loadSuiteTestData, setContextName, setRelativeWebappRoot, setUp, tearDown |
Methods inherited from class org.kuali.rice.test.RiceInternalSuiteDataTestCase |
---|
getKIMDataLoadOrderFile, getKIMSqlFileBaseLocation, getKNSDefaultSuiteTestData |
Methods inherited from class org.kuali.rice.test.BaseRiceTestCase |
---|
getName, getPerTestDataLoaderLifecycle, resetLogLevels, setLogLevel, setName, setTestMethod |
Methods inherited from class org.junit.Assert |
---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String MIXED_LIST_PATTERN
Constructor Detail |
---|
public MessageMapTest()
Method Detail |
---|
public void testPut()
public void testErrorCount()
public void testFieldMessages()
public void testErrorPath()
public void testPropertiesWithErrors()
public void testMessageParameters()
private void checkMessageParemeters(TypedArrayList errorMessages, int messageIndex, String expectedKeyConstant, String[] expectedParameters)
public void testMessageCollisions()
public void testContainsKeyMatchingPattern_mixedList_empty()
public void testContainsKeyMatchingPattern_mixedList_simpleNoMatch()
public void testContainsKeyMatchingPattern_mixedList_simpleMatch()
public void testContainsKeyMatchingPattern_mixedList_wildcardMatch()
public void testReplace_testEquals()
public void testReplace_noMatchingProperty()
public void testReplace_matchingProperty_noMatchingKey()
public void testReplace_matchingProperty_matchingKey_noParams()
public void testReplace_matchingProperty_matchingKey_withParams()
private MessageMap buildReplaceErrorMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |