You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Harry Metske <ha...@gmail.com> on 2008/03/30 15:08:54 UTC

junit tests and localization

Hi all,

I have been running the junit test once again, and since we have i18n built
in, a lot of tests fail, I get dutch answers while english is expected.
What would be the recommended way to deal with this, can I switch from nl to
en when running the ant tests ?
Same is true for running individual junit test in Eclipse.....

<Janne>
Do we still need the testBug85_case* in PageRenamerTest ?
It is referring to bug 85 on bugs.jspwiki.org, but that does not exist
anymore.....
</Janne>

-- 
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081

Re: junit tests and localization

Posted by Harry Metske <ha...@gmail.com>.
>
> > I have been running the junit test once again, and since we have
> > i18n built
> > in, a lot of tests fail, I get dutch answers while english is
> > expected.
> > What would be the recommended way to deal with this, can I switch
> > from nl to
> > en when running the ant tests ?


thanks, makes test results much better :-)

regards,
Harry

Just make sure that your locale is set to "en" before you do
> anything.  For example, in most UNIX systems, "man locale" should help.
>
>
> > <Janne>
> > Do we still need the testBug85_case* in PageRenamerTest ?
> > It is referring to bug 85 on bugs.jspwiki.org, but that does not exist
> > anymore.....
> > </Janne>
>
>
> I'd rather keep it.  That makes sure that it won't crop up again.
>
>
> /Janne
>



-- 
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081

Re: junit tests and localization

Posted by Janne Jalkanen <Ja...@ecyrd.com>.
> I have been running the junit test once again, and since we have  
> i18n built
> in, a lot of tests fail, I get dutch answers while english is  
> expected.
> What would be the recommended way to deal with this, can I switch  
> from nl to
> en when running the ant tests ?

Just make sure that your locale is set to "en" before you do  
anything.  For example, in most UNIX systems, "man locale" should help.

> <Janne>
> Do we still need the testBug85_case* in PageRenamerTest ?
> It is referring to bug 85 on bugs.jspwiki.org, but that does not exist
> anymore.....
> </Janne>

I'd rather keep it.  That makes sure that it won't crop up again.

/Janne