commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/pool/src/test/org/apache/commons/pool/impl TestGenericObjectPool.java
Date Sun, 04 Jul 2004 17:21:48 GMT
dirkv       2004/07/04 10:21:48

  Modified:    pool/src/test/org/apache/commons/pool/impl
                        TestGenericObjectPool.java
  Log:
  remove invalid test, correct test is testMaxActiveZero
  
  Revision  Changes    Path
  1.23      +1 -9      jakarta-commons/pool/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java
  
  Index: TestGenericObjectPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/pool/src/test/org/apache/commons/pool/impl/TestGenericObjectPool.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- TestGenericObjectPool.java	29 Jun 2004 20:04:43 -0000	1.22
  +++ TestGenericObjectPool.java	4 Jul 2004 17:21:47 -0000	1.23
  @@ -212,14 +212,6 @@
           assertEquals(0,pool.getNumIdle());
       }
       
  -    public void testZeroMaxActive() throws Exception {
  -        pool.setMaxActive(0);
  -        pool.setWhenExhaustedAction(GenericObjectPool.WHEN_EXHAUSTED_FAIL);
  -        Object obj = pool.borrowObject();
  -        assertEquals(getNthObject(0),obj);
  -        pool.returnObject(obj);
  -    }
  -
       public void testNegativeMaxActive() throws Exception {
           pool.setMaxActive(-1);
           pool.setWhenExhaustedAction(GenericObjectPool.WHEN_EXHAUSTED_FAIL);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message