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

kenneth_suter
27.05.2007 daf79793fe27b5194d1dee338f3a9f12e18f023d
opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java
@@ -30,31 +30,29 @@
import org.testng.annotations.*;
import org.opends.quicksetup.*;
import org.opends.quicksetup.Utils;
import org.opends.server.TestCaseUtils;
import java.io.FileNotFoundException;
import org.opends.quicksetup.TestUtilities;
/**
 * ServerController Tester.
 */
@Test(enabled=false, groups = {"slow"})
@Test(groups = {"slow"})
public class ServerControllerTest extends QuickSetupTestCase {
  ServerController controller;
  Status status;
  @BeforeClass
  public void setUp() throws Exception {
//    Installation installation = Utils.getInstallation();
//    controller = new ServerController(installation);
//    status = installation.getStatus();
    Installation installation = TestUtilities.getInstallation();
    controller = new ServerController(installation);
    status = installation.getStatus();
  }
  /**
   * Tests ability to stop the server.
   * @throws ApplicationException
   */
  @Test(enabled=false)
  @Test
  public void testStopServer() throws ApplicationException {
    if (!status.isServerRunning()) {
      controller.startServer();
@@ -68,7 +66,7 @@
   * Tests ability to start the server.
   * @throws ApplicationException
   */
  @Test(enabled=false)
  @Test
  public void testStartServer() throws ApplicationException {
    if (status.isServerRunning()) {
      controller.stopServer();