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/TestJebFormat.java | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestJebFormat.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestJebFormat.java
index 428af7f..430a948 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestJebFormat.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestJebFormat.java
@@ -33,7 +33,7 @@
import java.util.Arrays;
import java.util.List;
-import org.opends.server.InitialDirectoryServerFixture;
+import org.opends.server.TestCaseUtils;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeType;
@@ -191,7 +191,8 @@
*/
@Test()
public void testEntryToAndFromDatabase() throws Exception {
- InitialDirectoryServerFixture.FACTORY.setUp();
+ // Make sure that the server is up and running.
+ TestCaseUtils.startServer();
// Convert the test LDIF string to a byte array
byte[] originalLDIFBytes = StaticUtils.getBytes(ldifString);
@@ -254,7 +255,5 @@
}
}
reader.close();
-
- InitialDirectoryServerFixture.FACTORY.tearDown();
}
}
--
Gitblit v1.10.0