commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1573787 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
Date Mon, 03 Mar 2014 22:31:49 GMT
Author: sebb
Date: Mon Mar  3 22:31:49 2014
New Revision: 1573787

URL: http://svn.apache.org/r1573787
Log:
Add some more tests

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

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java?rev=1573787&r1=1573786&r2=1573787&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
Mon Mar  3 22:31:49 2014
@@ -279,6 +279,13 @@ public class DurationFormatUtilsTest {
     }
 
     @Test
+    public void testFormatPeriodISOMethod() {
+        assertEquals("P0Y0M0DT0H0M0.000S", DurationFormatUtils.formatPeriodISO(0L, 0L));
+        assertEquals("P0Y0M0DT0H0M1.000S", DurationFormatUtils.formatPeriodISO(0L, 1000L));
+        assertEquals("P0Y0M0DT0H1M1.000S", DurationFormatUtils.formatPeriodISO(0L, 61000L));
+    }
+
+    @Test
     public void testFormatPeriod() {
         final Calendar cal1970 = Calendar.getInstance();
         cal1970.set(1970, 0, 1, 0, 0, 0);



Mime
View raw message