commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r490388 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java
Date Tue, 26 Dec 2006 22:10:11 GMT
Author: bayard
Date: Tue Dec 26 14:10:10 2006
New Revision: 490388

URL: http://svn.apache.org/viewvc?view=rev&rev=490388
Log:
Improved #LANG-303 test to prove the formatting works on each side of the serializing

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

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java?view=diff&rev=490388&r1=490387&r2=490388
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java
Tue Dec 26 14:10:10 2006
@@ -282,7 +282,13 @@
     }
 
     public void testLang303() {
+        Calendar cal = Calendar.getInstance();
+        cal.set(2004,11,31);
+
         FastDateFormat format = FastDateFormat.getInstance("yyyy/MM/dd");
+        String output = format.format(cal);
+
         format = (FastDateFormat) SerializationUtils.deserialize( SerializationUtils.serialize(
format ) );
+        assertEquals(output, format.format(cal));
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message