Browse Source

testcase for PR 44659

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@687739 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
49324dc8c3
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java

+ 6
- 0
src/tests/junit/org/apache/tools/ant/util/DateUtilsTest.java View File

@@ -42,6 +42,12 @@ public class DateUtilsTest extends TestCase {
assertEquals("2 minutes 1 second", text);
}

// https://issues.apache.org/bugzilla/show_bug.cgi?id=44659
public void XtestLongElapsedTime(){
assertEquals("2926 minutes 13 seconds",
DateUtils.formatElapsedTime(1000 * 175573));
}

public void testDateTimeISO(){
TimeZone timeZone = TimeZone.getTimeZone("GMT+1");
Calendar cal = Calendar.getInstance(timeZone);


Loading…
Cancel
Save