Does anyone care to corroborate my opinion, then, that
java.text.MessageFormat's (String, Locale) constructor
must yield a buggy object instance, then?

-Matt


--- Ben Speakmon <[EMAIL PROTECTED]> wrote:

> Well that settles that :) Apparently you can't set
> the locale from the
> command line, just the language and region. weird.
> 
> I'll check in that change.
> 
> On Nov 13, 2007 1:10 PM, Niall Pemberton
> <[EMAIL PROTECTED]> wrote:
> > Well I threw the following line into the setup()
> method of
> > AbstractMessageFormatTest and the errors go away.
> >
> >        
> java.util.Locale.setDefault(java.util.Locale.US);
> >
> > Niall
> >
> >
> > On Nov 13, 2007 8:17 PM, Matt Benson
> <[EMAIL PROTECTED]> wrote:
> > > Rather, I created the tests to explicitly use
> > > Locale.US so that there were no assumptions wrt
> > > default Locale; I will certainly be
> double-checking
> > > these.  :|
> > >
> > > -Matt
> > >
> > >
> > > --- Niall Pemberton <[EMAIL PROTECTED]>
> wrote:
> > >
> > > > My guess from just looking at the test output
> is
> > > > that theres an
> > > > assumption in the test that the default Locale
> is
> > > > US. If that is the
> > > > case then these tests should set the default
> locale
> > > > to Locale.US
> > > > before executing.
> > > >
> > > > Niall
> > > >
> > > > On Nov 13, 2007 7:38 PM, Ben Speakmon
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > Odd. WFM on my ubuntu with Java 1.4 and 5.
> > > > >
> > > > >
> > > > > On Nov 13, 2007 11:31 AM, Niall Pemberton
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > > I just tried running "maven test" for
> Commons
> > > > Lang and the
> > > > > > TextTestSuite had a bunch of failures. I
> don't
> > > > really have time to
> > > > > > look into this at the moment.
> > > > > >
> > > > > > Niall
> > > > > >
> > > > > > Testcase:
> > > >
> > >
>
testLongTime(org.apache.commons.lang.text.MessageFormatTest):
> > > > FAILED
> > > > > > expected:<...00:15:20 GMT; Time 1:
> 12:30:35 GMT;
> > > > Time 2: 18:45:50...>
> > > > > > but was:<...12:15:20 AM GMT; Time 1:
> 12:30:35 PM
> > > > GMT; Time 2: 6:45:50
> > > > > > PM...>
> > > > > > junit.framework.ComparisonFailure:
> > > > expected:<...00:15:20 GMT; Time 1:
> > > > > > 12:30:35 GMT; Time 2: 18:45:50...> but
> > > > was:<...12:15:20 AM GMT; Time
> > > > > > 1: 12:30:35 PM GMT; Time 2: 6:45:50 PM...>
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:64)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:58)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.testLongTime(AbstractMessageFormatTest.java:222)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >         at
> > > >
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >
> > > > > >
> > > > > > Testcase:
> > > >
> > >
>
testFullTime(org.apache.commons.lang.text.MessageFormatTest):
> > > > FAILED
> > > > > > expected:<...00:15:20 o'clock GMT; Time 1:
> > > > 12:30:35 o'clock GMT; Time
> > > > > > 2: 18:45:50 o'clock...> but
> was:<...12:15:20 AM
> > > > GMT; Time 1: 12:30:35
> > > > > > PM GMT; Time 2: 6:45:50 PM...>
> > > > > > junit.framework.ComparisonFailure:
> > > > expected:<...00:15:20 o'clock GMT;
> > > > > > Time 1: 12:30:35 o'clock GMT; Time 2:
> 18:45:50
> > > > o'clock...> but
> > > > > > was:<...12:15:20 AM GMT; Time 1: 12:30:35
> PM
> > > > GMT; Time 2: 6:45:50
> > > > > > PM...>
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:64)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.testFullTime(AbstractMessageFormatTest.java:238)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >         at
> > > >
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >
> > > > > >
> > > > > > Testcase:
> > > >
> > >
>
testLongTime(org.apache.commons.lang.text.ExtendedMessageFormatBaselineTest):
> > > > FAILED
> > > > > > expected:<...00:15:20 GMT; Time 1:
> 12:30:35 GMT;
> > > > Time 2: 18:45:50...>
> > > > > > but was:<...12:15:20 AM GMT; Time 1:
> 12:30:35 PM
> > > > GMT; Time 2: 6:45:50
> > > > > > PM...>
> > > > > > junit.framework.ComparisonFailure:
> > > > expected:<...00:15:20 GMT; Time 1:
> > > > > > 12:30:35 GMT; Time 2: 18:45:50...> but
> > > > was:<...12:15:20 AM GMT; Time
> > > > > > 1: 12:30:35 PM GMT; Time 2: 6:45:50 PM...>
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:64)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:58)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.testLongTime(AbstractMessageFormatTest.java:222)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >         at
> > > >
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >
> > > > > >
> > > > > > Testcase:
> > > >
> > >
>
testFullTime(org.apache.commons.lang.text.ExtendedMessageFormatBaselineTest):
> > > > FAILED
> > > > > > expected:<...00:15:20 o'clock GMT; Time 1:
> > > > 12:30:35 o'clock GMT; Time
> > > > > > 2: 18:45:50 o'clock...> but
> was:<...12:15:20 AM
> > > > GMT; Time 1: 12:30:35
> > > > > > PM GMT; Time 2: 6:45:50 PM...>
> > > > > > junit.framework.ComparisonFailure:
> > > > expected:<...00:15:20 o'clock GMT;
> > > > > > Time 1: 12:30:35 o'clock GMT; Time 2:
> 18:45:50
> > > > o'clock...> but
> > > > > > was:<...12:15:20 AM GMT; Time 1: 12:30:35
> PM
> > > > GMT; Time 2: 6:45:50
> > > > > > PM...>
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:64)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.testFullTime(AbstractMessageFormatTest.java:238)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >         at
> > > >
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >
> > > > > >
> > > > > > Testcase:
> > > >
> > >
>
testLongTime(org.apache.commons.lang.text.MessageFormatExtensionTest):
> > > >        FAILED
> > > > > > expected:<...00:15:20 GMT; Time 1:
> 12:30:35 GMT;
> > > > Time 2: 18:45:50...>
> > > > > > but was:<...12:15:20 AM GMT; Time 1:
> 12:30:35 PM
> > > > GMT; Time 2: 6:45:50
> > > > > > PM...>
> > > > > > junit.framework.ComparisonFailure:
> > > > expected:<...00:15:20 GMT; Time 1:
> > > > > > 12:30:35 GMT; Time 2: 18:45:50...> but
> > > > was:<...12:15:20 AM GMT; Time
> > > > > > 1: 12:30:35 PM GMT; Time 2: 6:45:50 PM...>
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:64)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:58)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.testLongTime(AbstractMessageFormatTest.java:222)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >         at
> > > >
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >
> > > > > >
> > > > > > Testcase:
> > > >
> > >
>
testFullTime(org.apache.commons.lang.text.MessageFormatExtensionTest):
> > > >        FAILED
> > > > > > expected:<...00:15:20 o'clock GMT; Time 1:
> > > > 12:30:35 o'clock GMT; Time
> > > > > > 2: 18:45:50 o'clock...> but
> was:<...12:15:20 AM
> > > > GMT; Time 1: 12:30:35
> > > > > > PM GMT; Time 2: 6:45:50 PM...>
> > > > > > junit.framework.ComparisonFailure:
> > > > expected:<...00:15:20 o'clock GMT;
> > > > > > Time 1: 12:30:35 o'clock GMT; Time 2:
> 18:45:50
> > > > o'clock...> but
> > > > > > was:<...12:15:20 AM GMT; Time 1: 12:30:35
> PM
> > > > GMT; Time 2: 6:45:50
> > > > > > PM...>
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.doAssertions(AbstractMessageFormatTest.java:64)
> > > > > >         at
> > > >
> > >
>
org.apache.commons.lang.text.AbstractMessageFormatTest.testFullTime(AbstractMessageFormatTest.java:238)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > > > >         at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >         at
> > > >
> > >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> > > > Source)
> > > > > >
> > > > > >
> > > >
> > >
>
---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > >      
>
____________________________________________________________________________________
> > > Be a better sports nut!  Let your teams follow
> you
> > > with Yahoo Mobile. Try it now. 
>
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
> > >
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



      
____________________________________________________________________________________
Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to