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

Nicolas Capponi
11.32.2016 6f14605908036dd6c2cfc64f31f1d5d8d17f86a8
opendj-server-legacy/src/test/java/org/opends/server/ServerContextBuilder.java
@@ -20,7 +20,6 @@
import java.io.File;
import org.forgerock.opendj.config.server.ServerManagementContext;
import org.opends.server.core.ConfigurationBootstrapper;
import org.opends.server.core.ConfigurationHandler;
import org.opends.server.core.ServerContext;
import org.opends.server.types.DirectoryEnvironmentConfig;
@@ -82,7 +81,7 @@
      throws InitializationException
  {
    final ConfigurationHandler configHandler =
        ConfigurationBootstrapper.bootstrap(serverContext, ConfigurationHandler.class);
        ConfigurationHandler.bootstrapConfiguration(serverContext, ConfigurationHandler.class);
    final ServerManagementContext serverManagementContext = new ServerManagementContext(configHandler);
    when(serverContext.getServerManagementContext()).thenReturn(serverManagementContext);
    return this;