org.kuali.rice.krad.util
Class MessageMapTest

java.lang.Object
  extended by org.kuali.rice.krad.util.MessageMapTest

public class MessageMapTest
extends Object

MessageMapTest tests the MessageMap methods


Constructor Summary
MessageMapTest()
           
 
Method Summary
 void testContainsKeyMatchingPattern_mixedList_empty()
          test that the given list of keys do not exist in an empty message map
 void testContainsKeyMatchingPattern_mixedList_simpleMatch()
          test that one of the non-wildcard keys in the given list is found in the message map
 void testContainsKeyMatchingPattern_mixedList_simpleNoMatch()
          test that the given list of keys do not exist in the message map
 void testContainsKeyMatchingPattern_mixedList_wildcardMatch()
          test that one of the wildcard keys in the given list is found in the message map
 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()
          test that an existing key and existing property are replaced in the message map
 void testReplace_matchingProperty_matchingKey_withParams()
          test that an existing key and existing property are replaced in the message map along with the associated params
 void testReplace_matchingProperty_noMatchingKey()
          test that a none existent key and existing property are not replaceable in the message map
 void testReplace_noMatchingProperty()
          test that a none existent key and none existent property are not replaceable in the message map
 void testReplace_testEquals()
          tests that two message maps are not equal when an additional message is added to one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageMapTest

public MessageMapTest()
Method Detail

testPut

public void testPut()
ErrorMap should only allow String keys and values.


testErrorCount

public void testErrorCount()
Test all errors are getting added and counted correctly.


testFieldMessages

public void testFieldMessages()
Test messages are getting accumulated correctly for a property.


testErrorPath

public void testErrorPath()
Test the error path is being prepended.


testPropertiesWithErrors

public void testPropertiesWithErrors()
Test that properties added with errors are being kept.


testMessageParameters

public void testMessageParameters()
Test message parameters are being correctly added and associated with an error message.


testMessageCollisions

public void testMessageCollisions()
Verify that using the same error message multiple times correctly stores different parameters each time. (Reproduces bug KULNRVSYS-943).


testContainsKeyMatchingPattern_mixedList_empty

public void testContainsKeyMatchingPattern_mixedList_empty()
test that the given list of keys do not exist in an empty message map


testContainsKeyMatchingPattern_mixedList_simpleNoMatch

public void testContainsKeyMatchingPattern_mixedList_simpleNoMatch()
test that the given list of keys do not exist in the message map


testContainsKeyMatchingPattern_mixedList_simpleMatch

public void testContainsKeyMatchingPattern_mixedList_simpleMatch()
test that one of the non-wildcard keys in the given list is found in the message map


testContainsKeyMatchingPattern_mixedList_wildcardMatch

public void testContainsKeyMatchingPattern_mixedList_wildcardMatch()
test that one of the wildcard keys in the given list is found in the message map


testReplace_testEquals

public void testReplace_testEquals()
tests that two message maps are not equal when an additional message is added to one


testReplace_noMatchingProperty

public void testReplace_noMatchingProperty()
test that a none existent key and none existent property are not replaceable in the message map


testReplace_matchingProperty_noMatchingKey

public void testReplace_matchingProperty_noMatchingKey()
test that a none existent key and existing property are not replaceable in the message map


testReplace_matchingProperty_matchingKey_noParams

public void testReplace_matchingProperty_matchingKey_noParams()
test that an existing key and existing property are replaced in the message map


testReplace_matchingProperty_matchingKey_withParams

public void testReplace_matchingProperty_matchingKey_withParams()
test that an existing key and existing property are replaced in the message map along with the associated params



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.