LocalizableMessage missing getMessageKey() Method / Inconsistent
----------------------------------------------------------------

                 Key: STS-802
                 URL: http://www.stripesframework.org/jira/browse/STS-802
             Project: Stripes
          Issue Type: Improvement
          Components: Formatting
    Affects Versions: Release 1.5.5, Release 1.5
            Reporter: Nikolaos
            Priority: Trivial


LocalizableMessage is missing the following code at the bottom:

        public String getMessageKey() {
                return messageKey;
        }

Which makes it consistent with LocalizableError (in fact I copied the snippet 
from LocalizableError).

Why is this neccessary?  When writing unit tests for ActionBean in a localized 
message environment I want to make sure the appropriate messages and errors are 
presented to the user... as such it makes little sense to compare the localized 
text of the message for a number of reasons (i.e. it could change / be tweaked, 
it is different in different languages, it requires copy/paste and maintenance, 
etc...).  However obtaining the message key and comparing the key is perfect.

This is EXTREMELY TRIVIAL and when comparing LocalizableMessage with 
LocalizableError the omission is EXTREMELY OBVIOUS.

--Nikolaos

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to