You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/12/14 15:35:00 UTC
svn commit: r1214260 -
/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp2/datasources/TestKeyedCPDSConnectionFactory.java
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