Patches item #993058, was opened at 2004-07-18 00:59
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497984&aid=993058&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
>Group: Release 1.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Chris Eldredge (chriseldredge)
>Assigned to: Julien HENRY (henryju)
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 ,).
----------------------------------------------------------------------
>Comment By: Julien HENRY (henryju)
Date: 2007-03-03 19:54
Message:
Logged In: YES
user_id=1235926
Originator: NO
Thanks for this contribution, and sorry for the delay. I don't understand
why I never see this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497984&aid=993058&group_id=61302
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development