MessageMap implements Serializable { public List<ErrorMessage> putError(String propertyName, String errorKey, String... errorParameters) { ErrorMessage message = new ErrorMessage(errorKey, errorParameters); return putMessageInMap(errorMessages, propertyName, message, true, true); } MessageMap();  MessageMap(MessageMap messageMap); void merge(MessageMap messageMap); void merge(Map<String, List<ErrorMessage>> messagesFrom,
            Map<String, List<ErrorMessage>> messagesTo); List<ErrorMessage> putError(String propertyName, String errorKey, String... errorParameters); List<ErrorMessage> putWarning(String propertyName, String messageKey,
            String... messageParameters); List<ErrorMessage> putInfo(String propertyName, String messageKey,
            String... messageParameters); List<ErrorMessage> putError(String propertyName, ErrorMessage message); List<ErrorMessage> putWarning(String propertyName, ErrorMessage message); List<ErrorMessage> putInfo(String propertyName, ErrorMessage message); List<ErrorMessage> putErrorWithoutFullErrorPath(String propertyName, String errorKey,
            String... errorParameters); List<ErrorMessage> putWarningWithoutFullErrorPath(String propertyName, String messageKey,
            String... messageParameters); List<ErrorMessage> putInfoWithoutFullErrorPath(String propertyName, String messageKey,
            String... messageParameters); List<ErrorMessage> putErrorWithoutFullErrorPath(String propertyName, ErrorMessage message); List<ErrorMessage> putWarningWithoutFullErrorPath(String propertyName, ErrorMessage message); List<ErrorMessage> putInfoWithoutFullErrorPath(String propertyName, ErrorMessage message); List<ErrorMessage> putErrorForSectionId(String sectionId, String errorKey,
            String... errorParameters); List<ErrorMessage> putWarningForSectionId(String sectionId, String messageKey,
            String... messageParameters); List<ErrorMessage> putInfoForSectionId(String sectionId, String messageKey,
            String... messageParameters); List<ErrorMessage> putErrorForSectionId(String sectionId, ErrorMessage message); List<ErrorMessage> putWarningForSectionId(String sectionId, ErrorMessage message); List<ErrorMessage> putInfoForSectionId(String sectionId, ErrorMessage message); List<ErrorMessage> putError(String propertyName, String errorKey, Boolean escapeHtmlMessageParameters, String... errorParameters); List<ErrorMessage> putWarning(String propertyName, String messageKey, Boolean escapeHtmlMessageParameters,
            String... messageParameters); List<ErrorMessage> putInfo(String propertyName, String messageKey, Boolean escapeHtmlMessageParameters,
            String... messageParameters); void addGrowlMessage(String growlTitle, String messageKey, String... messageParameters); void addGrowlMessage(GrowlMessage growl); boolean replaceError(String propertyName, String targetKey, String replaceKey, String... replaceParameters); boolean replaceErrorWithoutFullErrorPath(String propertyName, String targetKey, String replaceKey,
            String... replaceParameters); boolean fieldHasMessage(String fieldName, String errorKey); int countFieldMessages(String fieldName); boolean containsMessageKey(String messageKey); int getErrorCount(); int getWarningCount(); int getInfoCount(); List<ErrorMessage> getMessages(String path); void addToErrorPath(String parentName); List<String> getErrorPath(); boolean removeFromErrorPath(String parentName); void clearErrorPath(); String getKeyPath(String propertyName, boolean prependFullErrorPath); List<String> getPropertiesWithErrors(); List<String> getPropertiesWithWarnings(); List<String> getPropertiesWithInfo(); void clearErrorMessages(); boolean doesPropertyHaveError(String key); boolean containsKeyMatchingPattern(String pattern); Set<Map.Entry<String, List<ErrorMessage>>> getAllPropertiesAndErrors(); List<ErrorMessage> getErrorMessagesForProperty(String propertyName); List<ErrorMessage> getWarningMessagesForProperty(String propertyName); List<ErrorMessage> getInfoMessagesForProperty(String propertyName); List<List<ErrorMessage>> getErrorMessagesForProperty(String propertyName,
            boolean allowWildcard); List<List<ErrorMessage>> getWarningMessagesForProperty(String propertyName,
            boolean allowWildcard); List<List<ErrorMessage>> getInfoMessagesForProperty(String propertyName,
            boolean allowWildcard); boolean hasErrors(); boolean hasNoErrors(); boolean hasWarnings(); boolean hasNoWarnings(); boolean hasInfo(); boolean hasNoInfo(); boolean hasMessages(); boolean hasNoMessages(); Set<String> getAllPropertiesWithErrors(); Set<String> getAllPropertiesWithWarnings(); Set<String> getAllPropertiesWithInfo(); List<ErrorMessage> removeAllErrorMessagesForProperty(String property); List<ErrorMessage> removeAllWarningMessagesForProperty(String property); List<ErrorMessage> removeAllInfoMessagesForProperty(String property); int getNumberOfPropertiesWithErrors(); Map<String, List<ErrorMessage>> getErrorMessages(); Map<String, List<ErrorMessage>> getWarningMessages(); Map<String, List<ErrorMessage>> getInfoMessages(); List<GrowlMessage> getGrowlMessages(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testPut() { MessageMap testMap = new MessageMap(); try { testMap.putError("accountNbr", RiceKeyConstants.ERROR_INACTIVE); } catch (RuntimeException e) { fail("ErrorMap threw exception adding string pair"); } }