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/monitors/GenericMonitorTestCase.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/GenericMonitorTestCase.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/GenericMonitorTestCase.java
index 693921f..f45e2a9 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/GenericMonitorTestCase.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/monitors/GenericMonitorTestCase.java
@@ -29,6 +29,7 @@
 
 
 import org.testng.annotations.Test;
+import org.testng.annotations.AfterClass;
 
 import org.opends.server.TestCaseUtils;
 import org.opends.server.DirectoryServerTestCase;
@@ -85,7 +86,7 @@
    *
    * @throws  Exception  If an unexpected problem occurs.
    */
-  public abstract MonitorProvider getMonitorInstance()
+  protected abstract MonitorProvider getMonitorInstance()
          throws Exception;
 
 
@@ -159,5 +160,15 @@
   {
     getMonitorInstance().getMonitorData();
   }
+
+
+  /**
+   * We need to drop all of the memory that we can.
+   */
+  @AfterClass
+  public void cleanupMem()
+  {
+    configEntry = null;
+  }
 }
 

--
Gitblit v1.10.0