commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22245] New: - [lang] test.time fails in Japanese (non-us) locale.
Date Fri, 08 Aug 2003 11:59:19 GMT
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=22245>.
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=22245

[lang] test.time fails in Japanese (non-us) locale.

           Summary: [lang] test.time fails in Japanese (non-us) locale.
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: tetsuyak@ka2.so-net.ne.jp


test.time fails in Japanese locale.

The tests are DateUtilsTest.testParseCVS() and
DateFormatUtilsTest.testSMTP().

The cause is that these tests depend on US locale but use
default locale.

By the way, does parseCVS() needs Locale arg?
I think "CVS format" means that the language is English.

ant test.time log:

test.time:
     [echo] Running time package tests ...
     [java] .E.E.E.E.E.E.E......F..............
     [java] Time: 5.126
     [java] There were 7 errors:
     [java] 1)
testConstructor(org.apache.commons.lang.time.DateUtilsTest)java.text.ParseException:
Unparseable date: "February 12, 2002 12:34:56.789"
     [java]     at java.text.DateFormat.parse(DateFormat.java:334)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.setUp(DateUtilsTest.java:105)
     [java] 2)
testRound(org.apache.commons.lang.time.DateUtilsTest)java.text.ParseException:
Unparseable date: "February 12, 2002 12:34:56.789"
     [java]     at java.text.DateFormat.parse(DateFormat.java:334)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.setUp(DateUtilsTest.java:105)
     [java] 3)
testTruncate(org.apache.commons.lang.time.DateUtilsTest)java.text.ParseException:
Unparseable date: "February 12, 2002 12:34:56.789"
     [java]     at java.text.DateFormat.parse(DateFormat.java:334)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.setUp(DateUtilsTest.java:105)
     [java] 4)
testParseCVS(org.apache.commons.lang.time.DateUtilsTest)java.text.ParseException:
Unparseable date: "February 12, 2002 12:34:56.789"
     [java]     at java.text.DateFormat.parse(DateFormat.java:334)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.setUp(DateUtilsTest.java:105)
     [java] 5)
testIteratorEx(org.apache.commons.lang.time.DateUtilsTest)java.text.ParseException:
Unparseable date: "February 12, 2002 12:34:56.789"
     [java]     at java.text.DateFormat.parse(DateFormat.java:334)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.setUp(DateUtilsTest.java:105)
     [java] 6)
testWeekIterator(org.apache.commons.lang.time.DateUtilsTest)java.text.ParseException:
Unparseable date: "February 12, 2002 12:34:56.789"
     [java]     at java.text.DateFormat.parse(DateFormat.java:334)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.setUp(DateUtilsTest.java:105)
     [java] 7)
testMonthIterator(org.apache.commons.lang.time.DateUtilsTest)java.text.ParseException:
Unparseable date: "February 12, 2002 12:34:56.789"
     [java]     at java.text.DateFormat.parse(DateFormat.java:334)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.setUp(DateUtilsTest.java:105)
     [java] There was 1 failure:
     [java] 1)
testSMTP(org.apache.commons.lang.time.DateFormatUtilsTest)junit.framework.ComparisonFailure:
expected:<Sun, 08 Jun...> but was:<&#26085;, 08 6...>
     [java]     at
org.apache.commons.lang.time.DateFormatUtilsTest.testSMTP(DateFormatUtilsTest.java:200)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

     [java] FAILURES!!!
     [java] Tests run: 27,  Failures: 1,  Errors: 7

Mime
View raw message