From 078d47f0fec499677322bffac89e318dc66e6f20 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 04 Sep 2006 05:59:21 +0000
Subject: [PATCH] Update the Directory Server build process so that the test target will create a minimized installation that will allow the server to be started for those tests that need access to the configuration, schema, or any other aspect of the running server.  Also, update the test cases to make use of this capability when necessary.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java
index ccea5d5..938f53f 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java
@@ -29,7 +29,6 @@
 import java.io.ByteArrayInputStream;
 import java.io.File;
 
-import org.opends.server.InitialDirectoryServerFixture;
 import org.opends.server.TestCaseUtils;
 import org.opends.server.api.Backend;
 import org.opends.server.config.ConfigEntry;
@@ -71,7 +70,8 @@
    */
   @BeforeClass
   public void setUp() throws Exception {
-    InitialDirectoryServerFixture.FACTORY.setUp();
+    // Make sure that the server is up and running.
+    TestCaseUtils.startServer();
 
     tempDir = TestCaseUtils.createTemporaryDirectory("jebtest");
     homeDirName = tempDir.getAbsolutePath();
@@ -96,8 +96,6 @@
    */
   @AfterClass
   public void tearDown() throws Exception {
-    InitialDirectoryServerFixture.FACTORY.tearDown();
-
     TestCaseUtils.deleteDirectory(tempDir);
   }
 

--
Gitblit v1.10.0