[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: AbstractKernelTest and date handling
adrian@jboss.org
do-not-reply at jboss.com
Thu Mar 27 09:15:12 EDT 2008
"alesj" wrote : I've fixed/hacked the problem that's been bugging me from the beginning.
| Date handling inside MC was failing for me, since SimpleDateFormat by default takes default Locale.
| In my case this is Slovenian locale, but the test inputs day name as Mon, which is of course not recognized by my locale.
|
| I've put Locale.US to every possible place. :-)
| Now all the test finally pass for me locally. Yeay.
|
| Since it's date we're really interested in, its parsing/transformation, I don't see an issue in this Locale hack.
|
| Or is it? :-)
Why don't you just hack the tests to set the locale to American.
People should be able to inject dates in their own locale.
I doubt it has many use cases anyway. ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139266#4139266
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139266
More information about the jboss-dev-forums
mailing list