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

garydgregory 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 28c71a2ae Split testWaitDuration into 2 tests.
28c71a2ae is described below

commit 28c71a2ae4d20d564d210a5dec6ae7b68cc68ab6
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jul 30 07:13:29 2026 -0400

    Split testWaitDuration into 2 tests.
---
 src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java
index a7fa2542b..8afee673d 100644
--- a/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/ObjectUtilsTest.java
@@ -897,6 +897,10 @@ void testWaitDuration() throws InterruptedException {
         }
         final long elapsed = System.nanoTime() - start;
         assertTrue(elapsed >= Duration.ofMillis(100).toNanos());
+    }
+
+    @Test
+    void testWaitDurationThrows() throws InterruptedException {
         assertThrows(IllegalArgumentException.class, () -> 
ObjectUtils.wait(new Object(), Duration.ofSeconds(-10)));
         assertThrows(IllegalMonitorStateException.class, () -> 
ObjectUtils.wait(new Object(), Duration.ZERO));
     }

Reply via email to