You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2006/12/26 23:10:11 UTC

svn commit: r490388 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/FastDateFormatTest.java

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