ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r689044 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java
Date Tue, 26 Aug 2008 12:09:28 GMT
Author: bodewig
Date: Tue Aug 26 05:09:27 2008
New Revision: 689044

URL: http://svn.apache.org/viewvc?rev=689044&view=rev
Log:
Add test for worst case of elapsed time

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java?rev=689044&r1=689043&r2=689044&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java Tue Aug 26
05:09:27 2008
@@ -46,6 +46,8 @@
     public void testLongElapsedTime(){
         assertEquals("2926 minutes 13 seconds",
                      DateUtils.formatElapsedTime(1000 * 175573));
+        assertEquals("153722867280912 minutes 55 seconds",
+                     DateUtils.formatElapsedTime(Long.MAX_VALUE));
     }
 
     public void testDateTimeISO(){



Mime
View raw message