commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1214260 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/TestKeyedCPDSConnectionFactory.java
Date Wed, 14 Dec 2011 14:35:00 GMT
Author: sebb
Date: Wed Dec 14 14:34:59 2011
New Revision: 1214260

URL: http://svn.apache.org/viewvc?rev=1214260&view=rev
Log:
Use interface rather than concrete implementation

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

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/TestKeyedCPDSConnectionFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/TestKeyedCPDSConnectionFactory.java?rev=1214260&r1=1214259&r2=1214260&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/TestKeyedCPDSConnectionFactory.java
(original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/TestKeyedCPDSConnectionFactory.java
Wed Dec 14 14:34:59 2011
@@ -28,6 +28,7 @@ import junit.framework.TestSuite;
 
 import org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS;
 
+import org.apache.commons.pool2.KeyedObjectPool;
 import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
 
 /**
@@ -91,7 +92,7 @@ public class TestKeyedCPDSConnectionFact
         UserPassKey key = new UserPassKey("username", "password");
         KeyedCPDSConnectionFactory factory = 
             new KeyedCPDSConnectionFactory(cpds, null, false);
-        GenericKeyedObjectPool pool = new GenericKeyedObjectPool(factory);
+        KeyedObjectPool pool = new GenericKeyedObjectPool(factory);
         factory.setPool(pool);
         
         // Checkout a pair of connections



Mime
View raw message