[ 
http://www.stripesframework.org/jira/browse/STS-802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-802.
----------------------------

       Resolution: Fixed
    Fix Version/s: Release 1.5.6
         Assignee: Ben Gunter

> 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, Release 1.5.5
>            Reporter: Nikolaos
>            Assignee: Ben Gunter
>            Priority: Trivial
>             Fix For: Release 1.5.6
>
>
> 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

        

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to