commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r755387 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
Date Tue, 17 Mar 2009 20:51:58 GMT
Author: sebb
Date: Tue Mar 17 20:51:58 2009
New Revision: 755387

URL: http://svn.apache.org/viewvc?rev=755387&view=rev
Log:
Ensure calculation is performed as a long

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

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java?rev=755387&r1=755386&r2=755387&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/time/DurationFormatUtilsTest.java
Tue Mar 17 20:51:58 2009
@@ -120,7 +120,7 @@
         text = DurationFormatUtils.formatDurationWords(2 * 24 * 60 * 60 * 1000 + 72 * 60
* 1000, false, false);
         assertEquals("2 days 1 hour 12 minutes 0 seconds", text);
         for (int i = 2; i < 31; i++) {
-            text = DurationFormatUtils.formatDurationWords(i * 24 * 60 * 60 * 1000, false,
false);
+            text = DurationFormatUtils.formatDurationWords(i * 24 * 60 * 60 * 1000L, false,
false);
             // assertEquals(i + " days 0 hours 0 minutes 0 seconds", text);
             //            
             // junit.framework.ComparisonFailure: expected:<25 days 0 hours 0 minutes
0...> but was:<-24 days -17 hours



Mime
View raw message