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-pool.git
The following commit(s) were added to refs/heads/master by this push: new e5f0f895 Fix indentation e5f0f895 is described below commit e5f0f89528129d1dd549fb107845c813887779d9 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jun 5 12:59:41 2025 -0400 Fix indentation --- .../pool3/impl/TestGenericKeyedObjectPool.java | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java b/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java index f2f1d24e..3740ebfa 100644 --- a/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java +++ b/src/test/java/org/apache/commons/pool3/impl/TestGenericKeyedObjectPool.java @@ -2607,26 +2607,26 @@ public class TestGenericKeyedObjectPool extends AbstractTestKeyedObjectPool { assertEquals(1, simpleFactory.validateCounter); } - @Test -public void testValidateOnCreateFailure() throws Exception { - gkoPool.setTestOnCreate(true); - gkoPool.setTestOnBorrow(false); - gkoPool.setMaxTotal(2); - simpleFactory.setValidationEnabled(true); - simpleFactory.setValid(false); - // Make sure failed validations do not leak capacity - gkoPool.addObject("one"); - gkoPool.addObject("one"); - assertEquals(0, gkoPool.getNumIdle()); - assertEquals(0, gkoPool.getNumActive()); - simpleFactory.setValid(true); - final String obj = gkoPool.borrowObject("one"); - assertNotNull(obj); - gkoPool.addObject("one"); - // Should have one idle, one out now - assertEquals(1, gkoPool.getNumIdle()); - assertEquals(1, gkoPool.getNumActive()); -} + @Test + public void testValidateOnCreateFailure() throws Exception { + gkoPool.setTestOnCreate(true); + gkoPool.setTestOnBorrow(false); + gkoPool.setMaxTotal(2); + simpleFactory.setValidationEnabled(true); + simpleFactory.setValid(false); + // Make sure failed validations do not leak capacity + gkoPool.addObject("one"); + gkoPool.addObject("one"); + assertEquals(0, gkoPool.getNumIdle()); + assertEquals(0, gkoPool.getNumActive()); + simpleFactory.setValid(true); + final String obj = gkoPool.borrowObject("one"); + assertNotNull(obj); + gkoPool.addObject("one"); + // Should have one idle, one out now + assertEquals(1, gkoPool.getNumIdle()); + assertEquals(1, gkoPool.getNumActive()); + } /** * Verify that threads waiting on a depleted pool get served when a returning object fails