You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/09/21 00:28:28 UTC

(commons-lang) branch master updated: Add test

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


The following commit(s) were added to refs/heads/master by this push:
     new 310d9c9be Add test
310d9c9be is described below

commit 310d9c9be9d74c6ab7ea3f6f9125ea9b70ecc69f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Sep 20 20:28:20 2024 -0400

    Add test
---
 src/test/java/org/apache/commons/lang3/time/DurationUtilsTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/java/org/apache/commons/lang3/time/DurationUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DurationUtilsTest.java
index f8ead4317..3beacc1ad 100644
--- a/src/test/java/org/apache/commons/lang3/time/DurationUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DurationUtilsTest.java
@@ -92,6 +92,8 @@ public class DurationUtilsTest extends AbstractLangTest {
     @Test
     public void testOfConsumer() {
         assertTrue(DurationUtils.of(start -> assertTrue(start.compareTo(Instant.now()) <= 0)).compareTo(Duration.ZERO) >= 0);
+        final Instant before = Instant.now();
+        DurationUtils.of(start -> assertTrue(start.compareTo(before) >= 0));
     }
 
     @Test