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/quicksetup/org/opends/quicksetup/ui/GuiApplication.java |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
index 5112773..5d70931 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
@@ -36,7 +36,6 @@
 
 import javax.swing.*;
 import java.awt.event.WindowEvent;
-import java.io.IOException;
 import java.io.File;
 import java.security.cert.X509Certificate;
 import java.util.LinkedHashSet;
@@ -492,6 +491,7 @@
           Thread.sleep(300);
         } catch (Exception ex)
         {
+          // do nothing;
         }
       }
     }
@@ -526,13 +526,8 @@
       }
       InProcessServerController ipsc =
               new InProcessServerController(getInstallation());
-      ipsc.disableConnectionHandlers(true);
+      InProcessServerController.disableConnectionHandlers(true);
       ipsc.startServer();
-    } catch (IOException e) {
-      String msg = getMsg("error-determining-server-state");
-      LOG.log(Level.INFO, msg, e);
-      throw new ApplicationException(ApplicationException.Type.IMPORT_ERROR,
-          msg, e);
     } catch (Throwable t) {
       String msg = getMsg("error-starting-server-with-no-connection-handlers",
           (t.getMessage() == null) ? t.toString() : t.getMessage());

--
Gitblit v1.10.0