You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2014/11/07 12:57:34 UTC

svn commit: r1637356 - /directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/CreateLdapConnectionPoolRule.java

Author: elecharny
Date: Fri Nov  7 11:57:33 2014
New Revision: 1637356

URL: http://svn.apache.org/r1637356
Log:
Using a Validating LdapConnection pool configuration to make some test happy (a connection was get from the pool, and rebound to the wrong users before being put back in the pool)

Modified:
    directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/CreateLdapConnectionPoolRule.java

Modified: directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/CreateLdapConnectionPoolRule.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/CreateLdapConnectionPoolRule.java?rev=1637356&r1=1637355&r2=1637356&view=diff
==============================================================================
--- directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/CreateLdapConnectionPoolRule.java (original)
+++ directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/CreateLdapConnectionPoolRule.java Fri Nov  7 11:57:33 2014
@@ -22,9 +22,9 @@ package org.apache.directory.server.core
 import org.apache.commons.pool.impl.GenericObjectPool.Config;
 import org.apache.directory.api.ldap.codec.api.DefaultConfigurableBinaryAttributeDetector;
 import org.apache.directory.ldap.client.api.DefaultLdapConnectionFactory;
-import org.apache.directory.ldap.client.api.DefaultPoolableLdapConnectionFactory;
 import org.apache.directory.ldap.client.api.LdapConnectionConfig;
 import org.apache.directory.ldap.client.api.LdapConnectionPool;
+import org.apache.directory.ldap.client.api.ValidatingPoolableLdapConnectionFactory;
 import org.apache.directory.ldap.client.template.LdapConnectionTemplate;
 import org.apache.directory.server.annotations.CreateLdapConnectionPool;
 import org.apache.directory.server.ldap.LdapServer;
@@ -181,7 +181,7 @@ public class CreateLdapConnectionPoolRul
             .whenExhaustedAction();
 
         return new LdapConnectionPool(
-            new DefaultPoolableLdapConnectionFactory( factory ), poolConfig );
+            new ValidatingPoolableLdapConnectionFactory( factory ), poolConfig );
     }