From 530c736a46caa31efac5c6be33a0c429eb8fb2a7 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Thu, 22 Oct 2009 16:17:09 +0000
Subject: [PATCH] Remove useless MultimasterReplication plugin from unit tests

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java
index c3b286b..d4b10a4 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java
@@ -62,15 +62,12 @@
   {
     LDAPReplicationDomain domain = null;
     DN baseDn = DN.decode(TEST_ROOT_DN_STRING);
-    SynchronizationProvider replicationPlugin = null;
     int serverId = 1;
 
     try
     {
       // configure and start replication of TEST_ROOT_DN_STRING on the server
       // using a replication server that is not started
-      replicationPlugin = new MultimasterReplication();
-      DirectoryServer.registerSynchronizationProvider(replicationPlugin);
 
       // find  a free port for the replicationServer
       ServerSocket socket = TestCaseUtils.bindFreePort();
@@ -82,6 +79,7 @@
         new DomainFakeCfg(baseDn, serverId, replServers);
       domainConf.setHeartbeatInterval(100000);
       domain = MultimasterReplication.createNewDomain(domainConf);
+      domain.start();
 
       // check that the updates fail with the unwilling to perform error.
       InternalClientConnection conn =
@@ -108,12 +106,6 @@
     {
       if (domain != null)
         MultimasterReplication.deleteDomain(baseDn);
-
-      if (replicationPlugin != null)
-      {
-        replicationPlugin.finalizeSynchronizationProvider();
-        DirectoryServer.deregisterSynchronizationProvider(replicationPlugin);
-      }
     }
   }
 }

--
Gitblit v1.10.0