From 86ad6a08499797f9b3204896caee947abb03394f Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Mon, 07 Nov 2016 13:59:40 +0000
Subject: [PATCH] OPENDJ-3179: Migrate LDAP Connection Handler to SDK Grizzly transport
---
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/LdapTestCase.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/LdapTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/LdapTestCase.java
index 0d57fe4..0858871 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/LdapTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/LdapTestCase.java
@@ -17,13 +17,13 @@
package org.opends.server.protocols.ldap;
import static org.mockito.Mockito.mock;
-
-import static org.opends.server.config.ConfigConstants.*;
+import static org.opends.server.config.ConfigConstants.ATTR_LISTEN_PORT;
import java.util.Iterator;
import java.util.List;
import org.forgerock.opendj.config.server.ConfigException;
+import org.forgerock.opendj.reactive.LDAPConnectionHandler2;
import org.forgerock.opendj.server.config.meta.LDAPConnectionHandlerCfgDefn;
import org.forgerock.opendj.server.config.server.LDAPConnectionHandlerCfg;
import org.opends.server.DirectoryServerTestCase;
@@ -97,14 +97,14 @@
* @return Returns the new LDAP connection handler.
* @throws Exception if the handler cannot be initialized.
*/
- static LDAPConnectionHandler getLDAPHandlerInstance(Entry handlerEntry)
+ static LDAPConnectionHandler2 getLDAPHandlerInstance(Entry handlerEntry)
throws Exception
{
long serverLdapPort = TestCaseUtils.findFreePort();
Attribute a = Attributes.create(ATTR_LISTEN_PORT, String.valueOf(serverLdapPort));
handlerEntry.addAttribute(a, null);
LDAPConnectionHandlerCfg config = getConfiguration(handlerEntry);
- LDAPConnectionHandler handler = new LDAPConnectionHandler();
+ LDAPConnectionHandler2 handler = new LDAPConnectionHandler2();
handler.initializeConnectionHandler(mock(ServerContext.class), config);
return handler;
}
--
Gitblit v1.10.0