directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1646082 - in /directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test: pom.xml src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
Date Tue, 16 Dec 2014 21:16:12 GMT
Author: seelmann
Date: Tue Dec 16 21:16:12 2014
New Revision: 1646082

URL: http://svn.apache.org/r1646082
Log:
Next test

Added:
    directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
Modified:
    directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/pom.xml

Modified: directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/pom.xml?rev=1646082&r1=1646081&r2=1646082&view=diff
==============================================================================
--- directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/pom.xml (original)
+++ directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/pom.xml Tue Dec 16 21:16:12
2014
@@ -38,7 +38,7 @@
     <dependencies>
         <dependency>
             <groupId>org.apache.directory.api</groupId>
-            <artifactId>api-ldap-net-mina</artifactId>
+            <artifactId>api-ldap-client-api</artifactId>
             <version>${api.version}</version>
             <exclusions>
                 <exclusion>
@@ -49,7 +49,7 @@
         </dependency>
         <dependency>
             <groupId>org.apache.directory.api</groupId>
-            <artifactId>api-ldap-schema-data</artifactId>
+            <artifactId>api-ldap-net-mina</artifactId>
             <version>${api.version}</version>
             <exclusions>
                 <exclusion>
@@ -75,28 +75,6 @@
             <version>${api.version}</version>
             <exclusions>
                 <exclusion>
-                    <groupId>antlr</groupId>
-                    <artifactId>antlr</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.directory.api</groupId>
-            <artifactId>api-ldap-extras-codec</artifactId>
-            <version>${api.version}</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>antlr</groupId>
-                    <artifactId>antlr</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.directory.api</groupId>
-            <artifactId>api-ldap-extras-codec-api</artifactId>
-            <version>${api.version}</version>
-            <exclusions>
-                <exclusion>
                     <groupId>antlr</groupId>
                     <artifactId>antlr</artifactId>
                 </exclusion>

Added: directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java?rev=1646082&view=auto
==============================================================================
--- directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
(added)
+++ directory/sandbox/seelmann/osgi-testing/api-paxexam-osgi-test/src/test/java/org/apache/directory/api/osgi/ApiLdapClientApiOsgiTest.java
Tue Dec 16 21:16:12 2014
@@ -0,0 +1,54 @@
+/*
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you under the Apache License, Version 2.0 (the
+ *   "License"); you may not use this file except in compliance
+ *   with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing,
+ *   software distributed under the License is distributed on an
+ *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *   KIND, either express or implied.  See the License for the
+ *   specific language governing permissions and limitations
+ *   under the License.
+ *
+ */
+package org.apache.directory.api.osgi;
+
+
+import org.apache.directory.ldap.client.api.DefaultPoolableLdapConnectionFactory;
+import org.apache.directory.ldap.client.api.Krb5LoginConfiguration;
+import org.apache.directory.ldap.client.api.LdapConnectionConfig;
+import org.apache.directory.ldap.client.api.LdapConnectionPool;
+import org.apache.directory.ldap.client.api.LdapNetworkConnection;
+import org.apache.directory.ldap.client.api.SaslGssApiRequest;
+import org.apache.directory.ldap.client.api.future.AddFuture;
+import org.apache.directory.ldap.client.template.LdapConnectionTemplate;
+
+
+public class ApiLdapClientApiOsgiTest extends ApiOsgiTestBase
+{
+
+    @Override
+    protected String getBundleName()
+    {
+        return "org.apache.directory.api.ldap.client.api";
+    }
+
+
+    @Override
+    protected void useBundleClasses() throws Exception
+    {
+        new LdapNetworkConnection().close();
+        new SaslGssApiRequest();
+        new Krb5LoginConfiguration();
+        new AddFuture( new LdapNetworkConnection(), 2 );
+        new LdapConnectionTemplate( new LdapConnectionPool( new DefaultPoolableLdapConnectionFactory(
+            new LdapConnectionConfig() ) ) );
+    }
+
+}



Mime
View raw message