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

kenneth_suter
15.34.2007 80c58327faaa4873369f6bb949e62792c2f708e0
opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -84,6 +84,7 @@
import static org.opends.server.util.StaticUtils.*;
import org.opends.server.tasks.TaskUtils;
import org.opends.server.api.WorkQueue;
import org.opends.messages.Message;
/**
 * This class defines some utility functions which can be used by test
@@ -396,6 +397,15 @@
   */
  public static void shutdownServer(String reason)
  {
    shutdownServer(Message.raw(reason));
  }
  /**
   * Shut down the server, if it has been started.
   * @param reason The reason for the shutdown.
   */
  public static void shutdownServer(Message reason)
  {
    if (SERVER_STARTED)
    {
      InvocationCounterPlugin.resetShutdownCalled();