DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24648>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24648 Properties files are not properly loaded when testing class under junit task [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-11-12 16:00 ------- You need to set the locale and not just the "user.language" system property. If the locale is not specified, the default locale is used. BUT this is only set once: in java.util.Locale#getDefault() which uses the "user.language" property to find the default locale if the default is null. By the time you call junit, the default locale would have been retrieved many times. You can do one of two things: 1) set default locale by hand in the test: Locale.setDefault(new Locale(System.getProperty("user.language"))) 2) call "junit" with the attribute "fork" = yes --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]