From 883c4b7810dcabba4ebe2924ca0757485f5312da 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.

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

diff --git a/opends/src/statuspanel/org/opends/statuspanel/ServerStatusPooler.java b/opends/src/statuspanel/org/opends/statuspanel/ServerStatusPooler.java
index 97af64b..aed3f03 100644
--- a/opends/src/statuspanel/org/opends/statuspanel/ServerStatusPooler.java
+++ b/opends/src/statuspanel/org/opends/statuspanel/ServerStatusPooler.java
@@ -30,7 +30,7 @@
 import java.io.File;
 import java.util.HashSet;
 
-import org.opends.quicksetup.CurrentInstallStatus;
+import org.opends.quicksetup.Installation;
 import org.opends.quicksetup.util.Utils;
 import org.opends.statuspanel.event.ServerStatusChangeEvent;
 import org.opends.statuspanel.event.ServerStatusChangeListener;
@@ -151,6 +151,7 @@
     }
     catch (Throwable t)
     {
+      // do nothing;
     }
   }
 
@@ -300,7 +301,7 @@
     {
       desc.setStatus(ServerStatusDescriptor.ServerStatus.STOPPING);
     }
-    else if (CurrentInstallStatus.isServerRunning())
+    else if (Installation.getLocal().getStatus().isServerRunning())
     {
       desc.setStatus(ServerStatusDescriptor.ServerStatus.STARTED);
     }
@@ -412,10 +413,6 @@
     }
   }
 
-  /**
-   * The following three methods are just commodity methods to get localized
-   * messages.
-   */
   private String getMsg(String key)
   {
     return getI18n().getMsg(key);

--
Gitblit v1.10.0