harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r409652 - in /incubator/harmony/enhanced/classlib/trunk: modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/ support/src/test/java/tests/support/
Date Fri, 26 May 2006 11:47:24 GMT
Author: mloenko
Date: Fri May 26 04:47:24 2006
New Revision: 409652

URL: http://svn.apache.org/viewvc?rev=409652&view=rev
Log:
fixes for HARMONY-423
tests depend on default locale

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/GeneralizedTimeTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/UTCTimeTest.java
    incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_SimpleDateFormat.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/GeneralizedTimeTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/GeneralizedTimeTest.java?rev=409652&r1=409651&r2=409652&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/GeneralizedTimeTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/GeneralizedTimeTest.java
Fri May 26 04:47:24 2006
@@ -20,6 +20,7 @@
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Arrays;
+import java.util.Locale;
 import java.util.TimeZone;
 
 import junit.framework.TestCase;
@@ -44,7 +45,7 @@
     private static final Object[][] validGeneralizedTimes;
 
     static {
-        SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy HH:mm:ss");
+        SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy HH:mm:ss", Locale.US);
         sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
 
         validGeneralizedTimes = new Object[][] {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/UTCTimeTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/UTCTimeTest.java?rev=409652&r1=409651&r2=409652&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/UTCTimeTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/org/apache/harmony/security/asn1/der/UTCTimeTest.java
Fri May 26 04:47:24 2006
@@ -20,6 +20,7 @@
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.Arrays;
+import java.util.Locale;
 import java.util.TimeZone;
 
 import junit.framework.TestCase;
@@ -43,7 +44,7 @@
     public static final Object[][] validUTCTimes;
 
     static {
-        SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy HH:mm:ss");
+        SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy HH:mm:ss", Locale.US);
         sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
 
         validUTCTimes = new Object[][] {

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_SimpleDateFormat.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_SimpleDateFormat.java?rev=409652&r1=409651&r2=409652&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_SimpleDateFormat.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_SimpleDateFormat.java
Fri May 26 04:47:24 2006
@@ -22,6 +22,7 @@
 import java.util.Calendar;
 import java.util.Date;
 import java.util.GregorianCalendar;
+import java.util.Locale;
 import java.util.TimeZone;
 import java.util.Vector;
 
@@ -47,7 +48,7 @@
 		cal.set(Calendar.MILLISECOND, 0);
 		Date date = cal.getTime();
 		SimpleDateFormat format = (SimpleDateFormat) DateFormat
-				.getDateInstance();
+                .getDateInstance(DateFormat.DEFAULT, Locale.US);
 		format.setTimeZone(tz);
 
 		// test with all pattern chars, and multiple occurances
@@ -134,7 +135,7 @@
 		cal.set(Calendar.MILLISECOND, 0);
 		Date date = cal.getTime();
 		SimpleDateFormat format = (SimpleDateFormat) DateFormat
-				.getDateInstance();
+                .getDateInstance(DateFormat.DEFAULT, Locale.US);
 		format.setTimeZone(tz);
 
 		format.applyPattern("yyyyMMddHHmmss");



Mime
View raw message