Thanks for these, I committed a global fix to set the default locale
for all the tests.
On 26-mrt-06, at 20:42, Raoul Pierre wrote:
Hello,
To avoid failures with TestFeedProvider test methods, I had to add
Locale.get/setDefault calls:
public void testFeedProviderRss()
throws Exception
{
Locale locale = Locale.getDefault();
Locale.setDefault(Locale.ENGLISH);
setupSite("site/feed.xml");
HttpUtils.Request request = new HttpUtils.Request
("http://localhost:8181/rss");
HttpUtils.Page page = request.retrieve();
String result = page.getContent();
Locale.setDefault(locale);
String eol = System.getProperty("line.separator");
assertEquals(result, "<?xml version=\"1.0\" encoding=\"UTF-8
\"?>"+eol+
"<rss version=\"2.0\">"+eol+
[...]
All the "\n" are replaced by system line separator.
Regards
Pierre
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED]
"Use what you need" Avenue de Scailmont 34 Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin
gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users