commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1547559 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestPoolableConnection.java
Date Tue, 03 Dec 2013 20:02:00 GMT
Author: markt
Date: Tue Dec  3 20:02:00 2013
New Revision: 1547559

URL: http://svn.apache.org/r1547559
Log:
Follow-up to close() refactoring in r1547553 

Modified:
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestPoolableConnection.java

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestPoolableConnection.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestPoolableConnection.java?rev=1547559&r1=1547558&r2=1547559&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestPoolableConnection.java
(original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/TestPoolableConnection.java
Tue Dec  3 20:02:00 2013
@@ -106,7 +106,8 @@ public class TestPoolableConnection exte
         outer.close();
         
         Assert.assertTrue(outer.isClosed());
-        Assert.assertFalse(conn.isClosed());
+        Assert.assertTrue(conn.isClosed());
         Assert.assertEquals(0, pool.getNumActive());
+        Assert.assertEquals(1, pool.getNumIdle());
     }
 }



Mime
View raw message