From daf79793fe27b5194d1dee338f3a9f12e18f023d Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 27 Jun 2007 14:05:11 +0000
Subject: [PATCH] Reenabling the quicksetup tests. The problems encountered last week have apparently been resolved. All tests pass when performing a complete run of the tests using the 'testall' target along with the BUILD_NUMBER system property.
---
opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java
index 4c34942..7547757 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/quicksetup/util/ServerControllerTest.java
+++ b/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();
--
Gitblit v1.10.0