This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit 2b0c0b9bc8a01719e74b844563f8003964b006f6
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat May 25 09:37:14 2024 -0400

    Rename and enable old test
---
 .../commons/lang3/time/DurationFormatUtilsTest.java | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 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 e5441fb92..5f7aa0793 100644
--- a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java
@@ -523,15 +523,18 @@ public class DurationFormatUtilsTest extends 
AbstractLangTest {
                              new int[] { 2006, 9, 6, 0, 0, 0 }, "MM");
     }
 
-    // Takes a minute to run, so generally turned off
-//    public void testBrutally() {
-//        Calendar c = Calendar.getInstance();
-//        c.set(2004, 0, 1, 0, 0, 0);
-//        for (int i=0; i < FOUR_YEARS; i++) {
-//            bruteForce(c.get(Calendar.YEAR), c.get(Calendar.MONTH), 
c.get(Calendar.DAY_OF_MONTH), "d", Calendar.DAY_OF_MONTH );
-//            c.add(Calendar.DAY_OF_MONTH, 1);
-//        }
-//    }
+    /**
+     * Takes 8 seconds to run.
+     */
+    @Test
+    public void testFourYears() {
+        Calendar c = Calendar.getInstance();
+        c.set(2004, 0, 1, 0, 0, 0);
+        for (int i = 0; i < FOUR_YEARS; i++) {
+            bruteForce(c.get(Calendar.YEAR), c.get(Calendar.MONTH), 
c.get(Calendar.DAY_OF_MONTH), "d", Calendar.DAY_OF_MONTH);
+            c.add(Calendar.DAY_OF_MONTH, 1);
+        }
+    }
 
     @Test
     public void testLANG815() {

Reply via email to