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(){


Reply via email to