mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
14.01.2013 34e3f5716b8090d80101d2bef6ac92b50df905ba
Checkpoint commit for OPENDJ-175: Decouple OpenDJ LDAP SDK from Grizzly

* Minor cleanup on test files
2 files modified
5 ■■■■■ changed files
opendj3/opendj-core/src/test/java/com/forgerock/opendj/ldap/BasicLDAPConnectionFactory.java 3 ●●●● patch | view | raw | blame | history
opendj3/opendj-core/src/test/java/com/forgerock/opendj/ldap/BasicTransportProvider.java 2 ●●●●● patch | view | raw | blame | history
opendj3/opendj-core/src/test/java/com/forgerock/opendj/ldap/BasicLDAPConnectionFactory.java
@@ -27,6 +27,7 @@
package com.forgerock.opendj.ldap;
import static org.forgerock.opendj.ldap.ErrorResultException.*;
import static org.mockito.Mockito.*;
import java.net.SocketAddress;
@@ -80,7 +81,7 @@
            final ResultHandler<? super Connection> handler) {
        final AsynchronousFutureResult<Connection, ResultHandler<? super Connection>> future =
                new AsynchronousFutureResult<Connection, ResultHandler<? super Connection>>(handler);
        future.handleResult(org.mockito.Mockito.mock(Connection.class));
        future.handleResult(mock(Connection.class));
        return future;
    }
opendj3/opendj-core/src/test/java/com/forgerock/opendj/ldap/BasicTransportProvider.java
@@ -55,7 +55,6 @@
    @Override
    public LDAPConnectionFactoryImpl getLDAPConnectionFactory(SocketAddress address, LDAPOptions options) {
        return new BasicLDAPConnectionFactory(address, options);
        //return null;
    }
    /** {@inheritDoc} */
@@ -65,7 +64,6 @@
            ServerConnectionFactory<LDAPClientContext, Integer> factory,
            LDAPListenerOptions options)
            throws IOException {
        //return null;
        return new BasicLDAPListener(address, factory, options);
    }