You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by Mikaël Cluseau <nw...@nwrk.dyndns.org> on 2004/09/02 13:02:24 UTC
TestConfigurationPoint.testLocalized fails
Hello,
In class hivemind.test.config.TestConfigurationPoint, method
testLocalized (projet jakarta-hivemind HEAD):
The "assertEquals("Some Damn Thing", d.getValue());" must be changed to
the following in order to work as expected (in French environment at least).
if (Locale.getDefault().equals(Locale.FRENCH) ||
Locale.getDefault().equals(Locale.FRANCE)) {
assertEquals("Une Certaine Fichue Chose", d.getValue());
} else {
assertEquals("Some Damn Thing", d.getValue());
}
Please cc me your answers since I'm not (yet) on the list, thanks
Mikael.
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
Re: TestConfigurationPoint.testLocalized fails
Posted by Howard Lewis Ship <hl...@gmail.com>.
Actually, probably need to build the Registry with a specific locale
instead. Thanks for the heads up.
On Thu, 02 Sep 2004 13:02:24 +0200, Mikaël Cluseau <nw...@nwrk.dyndns.org> wrote:
> Hello,
>
> In class hivemind.test.config.TestConfigurationPoint, method
> testLocalized (projet jakarta-hivemind HEAD):
>
> The "assertEquals("Some Damn Thing", d.getValue());" must be changed to
> the following in order to work as expected (in French environment at least).
>
> if (Locale.getDefault().equals(Locale.FRENCH) ||
> Locale.getDefault().equals(Locale.FRANCE)) {
> assertEquals("Une Certaine Fichue Chose", d.getValue());
> } else {
> assertEquals("Some Damn Thing", d.getValue());
> }
>
> Please cc me your answers since I'm not (yet) on the list, thanks
> Mikael.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org