org.kuali.rice.krad.util
Class MessageMapTest

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

public class MessageMapTest
extends Object

This class tests the ErrorMap methods.


Constructor Summary
MessageMapTest()
           
 
Method Summary
 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 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()

testContainsKeyMatchingPattern_mixedList_simpleNoMatch

public void testContainsKeyMatchingPattern_mixedList_simpleNoMatch()

testContainsKeyMatchingPattern_mixedList_simpleMatch

public void testContainsKeyMatchingPattern_mixedList_simpleMatch()

testContainsKeyMatchingPattern_mixedList_wildcardMatch

public void testContainsKeyMatchingPattern_mixedList_wildcardMatch()

testReplace_testEquals

public void testReplace_testEquals()

testReplace_noMatchingProperty

public void testReplace_noMatchingProperty()

testReplace_matchingProperty_noMatchingKey

public void testReplace_matchingProperty_noMatchingKey()

testReplace_matchingProperty_matchingKey_noParams

public void testReplace_matchingProperty_matchingKey_noParams()

testReplace_matchingProperty_matchingKey_withParams

public void testReplace_matchingProperty_matchingKey_withParams()


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