From a5ce1b53bf9304c08bb51639b48bb77085cd62b3 Mon Sep 17 00:00:00 2001
From: davidely <davidely@localhost>
Date: Sun, 02 Sep 2007 04:00:42 +0000
Subject: [PATCH] There are several improvements to the unit test framework in this commit.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/plugins/UpdatePreOpPlugin.java |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/plugins/UpdatePreOpPlugin.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/plugins/UpdatePreOpPlugin.java
index aaa7dbe..c0bee65 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/plugins/UpdatePreOpPlugin.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/plugins/UpdatePreOpPlugin.java
@@ -119,14 +119,8 @@
       }
     }
 
-    if (instance == null)
-    {
-      instance = this;
-    }
-    else
-    {
-      throw new ConfigException(Message.raw("Only one update preop plugin may be used"));
-    }
+    // We assume that there is only one of these active at a time.
+    instance = this;
 
     setAttributes       = new ArrayList<Attribute>();
     removeAttributes    = new ArrayList<AttributeType>();

--
Gitblit v1.10.0