directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1677869 - /directory/shared/trunk/integ-osgi/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
Date Tue, 05 May 2015 17:39:02 GMT
Author: seelmann
Date: Tue May  5 17:39:02 2015
New Revision: 1677869

URL: http://svn.apache.org/r1677869
Log:
DIRAPI-239: Add test that uses org.apache.commons.pool.impl.GenericObjectPool.Config

Modified:
    directory/shared/trunk/integ-osgi/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java

Modified: directory/shared/trunk/integ-osgi/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ-osgi/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java?rev=1677869&r1=1677868&r2=1677869&view=diff
==============================================================================
--- directory/shared/trunk/integ-osgi/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
(original)
+++ directory/shared/trunk/integ-osgi/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
Tue May  5 17:39:02 2015
@@ -20,8 +20,11 @@
 package org.apache.directory.api.osgi;
 
 
+import org.apache.commons.pool.PoolableObjectFactory;
+import org.apache.commons.pool.impl.GenericObjectPool.Config;
 import org.apache.directory.ldap.client.api.DefaultPoolableLdapConnectionFactory;
 import org.apache.directory.ldap.client.api.Krb5LoginConfiguration;
+import org.apache.directory.ldap.client.api.LdapConnection;
 import org.apache.directory.ldap.client.api.LdapConnectionConfig;
 import org.apache.directory.ldap.client.api.LdapConnectionPool;
 import org.apache.directory.ldap.client.api.LdapNetworkConnection;
@@ -51,6 +54,14 @@ public class ApiLdapClientApiOsgiTest ex
         new LdapConnectionTemplate( new LdapConnectionPool( new DefaultPoolableLdapConnectionFactory(
             new LdapConnectionConfig() ) ) );
         FilterBuilder.and( FilterBuilder.not( FilterBuilder.contains( "cn", "a", "b" ) )
).toString();
+
+        // Test for DIRAPI-239
+        PoolableObjectFactory<LdapConnection> factory = new DefaultPoolableLdapConnectionFactory(
+            new LdapConnectionConfig() );
+        Config config = new Config();
+        LdapConnectionPool ldapConnectionPool = new LdapConnectionPool( factory, config );
+        ldapConnectionPool.getLdapApiService();
+        ldapConnectionPool.getTestOnBorrow();
     }
 
 }



Mime
View raw message