commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1098403 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
Date Sun, 01 May 2011 20:27:17 GMT
Author: oheger
Date: Sun May  1 20:27:16 2011
New Revision: 1098403

URL: http://svn.apache.org/viewvc?rev=1098403&view=rev
Log:
Fixed a test failure which occurred under certain circumstances (Java 1.5 with default locale
GERMAN).

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java?rev=1098403&r1=1098402&r2=1098403&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
Sun May  1 20:27:16 2011
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -96,7 +96,7 @@ public class FastDateFormatTest extends 
 
             assertTrue(format1 != format2); // -- junit 3.8 version -- assertFalse(format1
== format2);
             assertSame(format1, format3);
-            assertSame(Locale.GERMANY, format1.getLocale());
+            assertEquals(Locale.GERMANY, format1.getLocale());
 
         } finally {
             Locale.setDefault(realDefaultLocale);
@@ -217,13 +217,13 @@ public class FastDateFormatTest extends 
             fdf = FastDateFormat.getInstance(pattern);
             sdf = new SimpleDateFormat(pattern);
             assertEquals(sdf.format(date1), fdf.format(date1));
-            assertEquals(sdf.format(date2), fdf.format(date2));            
+            assertEquals(sdf.format(date2), fdf.format(date2));
         } finally {
             Locale.setDefault(realDefaultLocale);
             TimeZone.setDefault(realDefaultZone);
         }
     }
-    
+
     /**
      * Test case for {@link FastDateFormat#getDateInstance(int, java.util.Locale)}.
      */



Mime
View raw message