washingtonguilhardes / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

DefaultDateTypeAdapterTest#testDateSerialization fails on non US Locale #381

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Test assumes that the default locale is US.

Simple fix

Change line 130 in com.google.gson.DefaultDateTypeAdapterTest to

DateFormat formatter = DateFormat.getDateInstance(dateStyle, Locale.US);

What version of the product are you using? On what operating system?
latest svn snapshot r1051

Please provide any additional information below.

Statcktrace of failure

junit.framework.ComparisonFailure: 
Expected :26 November 2011
Actual   :November 26, 2011
    at com.google.gson.DefaultDateTypeAdapterTest.testDateSerialization(DefaultDateTypeAdapterTest.java:134)

Original issue reported on code.google.com by jkirschn...@gmail.com on 26 Nov 2011 at 4:43

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1076.

Original comment by limpbizkit on 16 Dec 2011 at 4:57

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by limpbizkit on 16 Dec 2011 at 4:57

GoogleCodeExporter commented 9 years ago
Issue 374 has been merged into this issue.

Original comment by limpbizkit on 16 Dec 2011 at 5:02