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

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


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

commit a214a78d22ac5ec451109a49f36d746ad3c2d06a
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Nov 24 15:46:29 2024 -0500

    Add test
---
 .../org/apache/commons/pool2/impl/TestGenericObjectPoolConfig.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPoolConfig.java 
b/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPoolConfig.java
index 3357557d..b5e9be3d 100644
--- 
a/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPoolConfig.java
+++ 
b/src/test/java/org/apache/commons/pool2/impl/TestGenericObjectPoolConfig.java
@@ -92,6 +92,12 @@ public class TestGenericObjectPoolConfig {
         assertEquals(Duration.ofSeconds(10), 
config.getSoftMinEvictableIdleDuration());
     }
 
+    @Test
+    void testSetSoftMinEvictableIdleTime() {
+        config.setSoftMinEvictableIdleTime(Duration.ofSeconds(10));
+        assertEquals(Duration.ofSeconds(10), 
config.getSoftMinEvictableIdleTime());
+    }
+
     @Test
     void testSetSoftMinEvictableIdleTimeMillis() {
         config.setSoftMinEvictableIdleTimeMillis(10_0000);

Reply via email to