Apply locale fix for date type adapter test.

Fixes issue 381.
This commit is contained in:
Jesse Wilson 2011-12-16 04:57:22 +00:00
parent dce4e463d9
commit d891661c4a

View File

@ -127,7 +127,7 @@ public class DefaultDateTypeAdapterTest extends TestCase {
public void testDateSerialization() throws Exception {
int dateStyle = DateFormat.LONG;
DefaultDateTypeAdapter dateTypeAdapter = new DefaultDateTypeAdapter(dateStyle);
DateFormat formatter = DateFormat.getDateInstance(dateStyle);
DateFormat formatter = DateFormat.getDateInstance(dateStyle, Locale.US);
Date currentDate = new Date();
String dateString = dateTypeAdapter.serialize(currentDate, Date.class, null).getAsString();