From 36ab978c97855c1e691b167bcd89dfb3be9525e5 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Fri, 15 Jun 2007 21:55:02 +0000
Subject: [PATCH] - Add a few more unit tests for important classes.  This also includes some plumbing for getting the quicksetup tests' workspace server configured enough so that it is startable and stoppable  for testing.

---
 opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
index f248539..1541f0b 100644
--- a/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
+++ b/opendj-sdk/opends/src/statuspanel/org/opends/statuspanel/StatusPanelController.java
@@ -39,7 +39,6 @@
 
 import org.opends.server.core.DirectoryServer;
 
-import org.opends.quicksetup.CurrentInstallStatus;
 import org.opends.quicksetup.Installation;
 import org.opends.quicksetup.ui.UIFactory;
 import org.opends.quicksetup.util.BackgroundTask;
@@ -579,7 +578,7 @@
         boolean running = false;
         for (int i=0; i<5 && !running; i++)
         {
-          running = CurrentInstallStatus.isServerRunning();
+          running = Installation.getLocal().getStatus().isServerRunning();
         }
 
         if (!running)
@@ -696,7 +695,8 @@
           int nTries = 10;
           for (int i=0; i<nTries && !stopped; i++)
           {
-            stopped = !CurrentInstallStatus.isServerRunning();
+            stopped = !Installation.getLocal().getStatus()
+                    .isServerRunning();
             if (!stopped)
             {
               String msg =

--
Gitblit v1.10.0