incorporated feedback on r721

This commit is contained in:
Inderjeet Singh 2011-04-04 21:43:24 +00:00
parent 1a9a54dcc2
commit a147164852

View File

@ -32,14 +32,14 @@ import junit.framework.TestCase;
public class DefaultDateTypeAdapterTest extends TestCase {
public void testFormattingInEnUs() {
testFormattingAlwaysEmitsUsLocale(Locale.US);
assertFormattingAlwaysEmitsUsLocale(Locale.US);
}
public void testFormattingInFr() {
testFormattingAlwaysEmitsUsLocale(Locale.FRANCE);
assertFormattingAlwaysEmitsUsLocale(Locale.FRANCE);
}
private void testFormattingAlwaysEmitsUsLocale(Locale locale) {
private void assertFormattingAlwaysEmitsUsLocale(Locale locale) {
TimeZone defaultTimeZone = TimeZone.getDefault();
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
Locale defaultLocale = Locale.getDefault();