commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r433527 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
Date Tue, 22 Aug 2006 05:46:45 GMT
Author: bayard
Date: Mon Aug 21 22:46:45 2006
New Revision: 433527

URL: http://svn.apache.org/viewvc?rev=433527&view=rev
Log:
Set the milliseconds to 0 to stop unit tests sometimes failing. Thanks Jörg

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

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java?rev=433527&r1=433526&r2=433527&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
Mon Aug 21 22:46:45 2006
@@ -402,8 +402,10 @@
     public void testBugzilla38401() {
         Calendar cal1 = Calendar.getInstance();
         cal1.set(2006, 0, 26, 18, 47, 34);
+        cal1.set(Calendar.MILLISECOND, 0);
         Calendar cal2 = Calendar.getInstance();
         cal2.set(2006, 1, 26, 10, 47, 34);
+        cal2.set(Calendar.MILLISECOND, 0);
 
         assertEquals( "0000/00/30 16:00:00 000", DurationFormatUtils.formatPeriod(cal1.getTime().getTime(),
cal2.getTime().getTime(), "yyyy/MM/dd HH:mm:ss SSS") );
     }



---------------------------------------------------------------------
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