From 5be072c20e46f0921bb00401ff26d0defb3e8991 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 05 Dec 2006 21:41:50 +0000
Subject: [PATCH] Update the base DN registration process to address a number of issues:

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
index e4b4266..b3b884c 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -76,7 +76,7 @@
    */
   public static final String PROPERTY_LDAP_PORT =
        "org.opends.server.LdapPort";
-  
+
   /**
    * The string representation of the DN that will be used as the base entry for
    * the test backend.  This must not be changed, as there are a number of test
@@ -151,7 +151,7 @@
     testRoot.mkdirs();
     //db_verify is second jeb backend used by the jeb verify test cases
     String[] subDirectories = { "bak", "bin", "changelogDb", "classes",
-                                "config", "db", "db_verify", "ldif", "lib", 
+                                "config", "db", "db_verify", "ldif", "lib",
                                 "locks", "logs" };
     for (String s : subDirectories)
     {
@@ -348,6 +348,7 @@
     if (memoryBackend == null)
     {
       memoryBackend = new MemoryBackend();
+      memoryBackend.setBackendID("test");
       memoryBackend.initializeBackend(null, new DN[] { baseDN });
       DirectoryServer.registerBackend(memoryBackend);
     }
@@ -367,12 +368,12 @@
 
    * @param  createBaseEntry  Indicate whether to automatically create the base
    *                          entry and add it to the backend.
-   *                          
+   *
    * @param beID  The be id to clear.
-   * 
+   *
    * @param dn   The suffix of the backend to create if the the createBaseEntry
    *             boolean is true.
-   *             
+   *
    * @throws  Exception  If an unexpected problem occurs.
    */
   public static void clearJEBackend(boolean createBaseEntry, String beID, String dn)

--
Gitblit v1.10.0