From 8532a5133e996e61765be126f8b4d25984745fd1 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 03 Sep 2007 13:33:50 +0000
Subject: [PATCH] Partial fix for issue 1451: admin framework constraint and dependency support.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/admin/TestChildCfgDefn.java |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/TestChildCfgDefn.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/TestChildCfgDefn.java
index 781ed0f..7d91ae3 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/TestChildCfgDefn.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/TestChildCfgDefn.java
@@ -180,6 +180,28 @@
   private TestChildCfgDefn() {
     super("test-child", null);
   }
+  
+  
+  
+  /**
+   * Adds a constraint temporarily with this test definition.
+   * 
+   * @param constraint The constraint.
+   */
+  public void addConstraint(Constraint constraint) {
+    registerConstraint(constraint);
+  }
+  
+  
+  
+  /**
+   * Removes a constraint from this test definition.
+   * 
+   * @param constraint The constraint.
+   */
+  public void removeConstraint(Constraint constraint) {
+    deregisterConstraint(constraint);
+  }
 
 
 

--
Gitblit v1.10.0