Patches item #993058, was opened at 2004-07-17 17:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497984&aid=993058&group_id=61302

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Chris Eldredge (chriseldredge)
Assigned to: Nobody/Anonymous (nobody)
Summary: ResourceBundle related assertions

Initial Comment:
This patch includes 16 new test cases which test the
existing functionality of the assertKey type assertions.

More important, it includes new assertions which allow
properties to be formatted before being compared.  So
if you have a properties file with:

title.key=My Application - {0} Section

You can now use assertTitleEqualsKey("title.key",
"Admin"} which will provide Locale specific message
formatting and effectively verify in this case that the
title is equal to "My Application - Admin Section".

Additional assertions are available, extending each
ResourceBundle related assertion previously available.

This offers powerful new functionality, since more
complex message formatting is available (See
java.text.MessageFormat).  For example, a message like
{0, number, currency} will automatically be formatted
appropriately according to the Locale being used
(dollar sign vs. euro sign; . vs ,).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497984&aid=993058&group_id=61302


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to