From dfbe880eb338a1d752ce790f689b5133761d7079 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 26 Sep 2013 07:35:55 +0000
Subject: [PATCH] OPENDJ-1116 Introduce abstraction for the changelog DB

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
index 03fa0d8..cedcebc 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java
@@ -1087,10 +1087,15 @@
   /**
    * Utility method : removes a domain deleting the passed config entry
    */
-  protected void removeDomain(Entry domainCfgEntry)
+  protected void removeDomain(Entry... domainCfgEntries)
   {
-    DN dn = domainCfgEntry.getDN();
-    deleteEntry(dn);
+    for (Entry entry : domainCfgEntries)
+    {
+      if (entry != null)
+      {
+        deleteEntry(entry.getDN());
+      }
+    }
   }
 
   /**

--
Gitblit v1.10.0