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

coulbeck
15.53.2006 6b1e5bb8307072f97456360ef7d07409cbabd557
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -48,7 +48,6 @@
import org.opends.server.loggers.Error;
import org.opends.server.loggers.Debug;
import org.opends.server.types.DN;
import org.opends.server.types.Entry;
import static org.opends.server.util.ServerConstants.*;
import static org.opends.server.util.StaticUtils.*;
@@ -162,6 +161,19 @@
  }
  /**
   * Shut down the server, if it has been started.
   * @param reason The reason for the shutdown.
   */
  public static void shutdownServer(String reason)
  {
    if (SERVER_STARTED)
    {
      DirectoryServer.shutDown("org.opends.server.TestCaseUtils", reason);
      SERVER_STARTED = false;
    }
  }
  /**
   * Initializes a memory-based backend that may be used to perform operations
   * while testing the server.  This will ensure that the memory backend is
   * created in the server if it does not yet exist, and that it is empty.  Note