Checkpoint commit for OPENDJ-175: Decouple OpenDJ LDAP SDK from Grizzly
* Minor cleanup on test files
| | |
| | | package com.forgerock.opendj.ldap; |
| | | |
| | | import static org.forgerock.opendj.ldap.ErrorResultException.*; |
| | | import static org.mockito.Mockito.*; |
| | | |
| | | import java.net.SocketAddress; |
| | | |
| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | @Override |
| | | public LDAPConnectionFactoryImpl getLDAPConnectionFactory(SocketAddress address, LDAPOptions options) { |
| | | return new BasicLDAPConnectionFactory(address, options); |
| | | //return null; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | |
| | | ServerConnectionFactory<LDAPClientContext, Integer> factory, |
| | | LDAPListenerOptions options) |
| | | throws IOException { |
| | | //return null; |
| | | return new BasicLDAPListener(address, factory, options); |
| | | } |
| | | |