FasterXML / jackson-datatype-joda

Extension module to properly support full datatype set of Joda datetime library
Apache License 2.0
140 stars 82 forks source link

Test failure in DateTimeTest.testCustomPatternStyle with a non english locale #65

Closed ebourg closed 9 years ago

ebourg commented 9 years ago

DateTimeTest.testCustomPatternStyle fails with a non English locale:

Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.383 sec <<< FAILURE! - in com.fasterxml.jackson.datatype.joda.DateTimeTest
testCustomPatternStyle(com.fasterxml.jackson.datatype.joda.DateTimeTest)  Time elapsed: 0.008 sec  <<< FAILURE!
junit.framework.ComparisonFailure: expected:<{"date":"[1/1/70 12:00 AM]"}> but was:<{"date":"[01/01/70 00:00]"}>
        at junit.framework.Assert.assertEquals(Assert.java:100)
        at junit.framework.Assert.assertEquals(Assert.java:107)
        at junit.framework.TestCase.assertEquals(TestCase.java:269)
        at com.fasterxml.jackson.datatype.joda.DateTimeTest.testCustomPatternStyle(DateTimeTest.java:101)

Here is a trivial patch fixing this issue.

cowtowncoder commented 9 years ago

Good catch, much appreciated!

ebourg commented 9 years ago

Thank you for the quick merge.