From 3c90159e3f51de69775a1ce093fa5086dc3f34d8 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Tue, 16 Jun 2009 08:15:43 +0000
Subject: [PATCH] Move the translateRuvEntryTest to the replication.plugin package because it is testing replicaiton.plugin code
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java | 28 +++++++++++++++++++++++-----
1 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
index 07fd87f..92161f0 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2007-2008 Sun Microsystems, Inc.
+ * Copyright 2007-2009 Sun Microsystems, Inc.
*/
package org.opends.server.replication.plugin;
@@ -49,7 +49,7 @@
private SortedSet<String> replicationServers;
private long heartbeatInterval = 1000;
private IsolationPolicy policy = IsolationPolicy.REJECT_ALL_UPDATES;
-
+
// Is assured mode enabled or not ?
private boolean assured = false;
// Assured sub mode (used when assured is true)
@@ -73,7 +73,7 @@
this.serverId = serverId;
this.replicationServers = replServers;
}
-
+
/**
* Creates a new Domain with the provided information
* (assured mode disabled, group id provided)
@@ -84,7 +84,7 @@
this(baseDn, serverId, replServers);
this.groupId = groupId;
}
-
+
/**
* Creates a new Domain with the provided information
* (assured mode info provided as well as group id)
@@ -113,6 +113,24 @@
}
/**
+ * Create a new Domain from the provided arguments.
+ *
+ * @param string The baseDN in string form.
+ * @param serverId The serverID.
+ * @param replServer The replication Server that will be used.
+ *
+ * @throws DirectoryException When the provided string is not a valid DN.
+ */
+ public DomainFakeCfg(String string, int serverId, String replServer)
+ throws DirectoryException
+ {
+ this.replicationServers = new TreeSet<String>();
+ this.replicationServers.add(replServer);
+ this.baseDn = DN.decode(string);
+ this.serverId = serverId;
+ }
+
+ /**
* {@inheritDoc}
*/
public void addChangeListener(
@@ -277,7 +295,7 @@
{
return assuredType;
}
-
+
public boolean isAssured()
{
return assured;
--
Gitblit v1.10.0