From fe354beb9353b71d83de55c84278ca13fa3b87c0 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Fri, 2 May 2014 08:43:44 +0000 Subject: [PATCH] Remove commented out test code git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1591828 13f79535-47bb-0310-9956-ffa450edef68 --- .../lang3/time/DurationFormatUtilsTest.java | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java index 95537108b..538b279c5 100644 --- a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java @@ -101,29 +101,7 @@ public class DurationFormatUtilsTest { assertEquals("2 days 1 hour 12 minutes 0 seconds", text); for (int i = 2; i < 31; i++) { 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 - // -2 minutes -47...> - // at junit.framework.Assert.assertEquals(Assert.java:81) - // at junit.framework.Assert.assertEquals(Assert.java:87) - // at - // org.apache.commons.lang.time.DurationFormatUtilsTest.testFormatDurationWords(DurationFormatUtilsTest.java:124) - // at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - // at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) - // at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) - // at java.lang.reflect.Method.invoke(Method.java:324) - // at junit.framework.TestCase.runTest(TestCase.java:154) - // at junit.framework.TestCase.runBare(TestCase.java:127) - // at junit.framework.TestResult$1.protect(TestResult.java:106) - // at junit.framework.TestResult.runProtected(TestResult.java:124) - // at junit.framework.TestResult.run(TestResult.java:109) - // at junit.framework.TestCase.run(TestCase.java:118) - // at junit.framework.TestSuite.runTest(TestSuite.java:208) - // at junit.framework.TestSuite.run(TestSuite.java:203) - // at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) - // at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) - // at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) + assertEquals(i + " days 0 hours 0 minutes 0 seconds", text); } }