From afb1b0e878209a895a9fc779fe77714021946fd2 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 21 Sep 2009 15:08:29 +0000
Subject: [PATCH] Fix issue 4043: problems with ACI unit tests

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java
index a75c8a0..e97c2ce 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java
@@ -22,11 +22,10 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.authorization.dseecompat;
 
-import org.opends.server.DirectoryServerTestCase;
 import org.opends.server.TestCaseUtils;
 import org.opends.messages.Message;
 import org.opends.server.types.LDIFImportConfig;
@@ -81,7 +80,7 @@
  * the syntax.
  */
 @Test(sequential=true, groups="slow")
-public class AciTests extends DirectoryServerTestCase {
+public class AciTests extends AciTestCase {
 // TODO: test modify use cases
 // TODO: test searches where we expect a subset of attributes and entries
 // TODO: test delete
@@ -544,15 +543,10 @@
 
   @BeforeClass
   public void setupClass() throws Exception {
-    TestCaseUtils.startServer();
     deleteAttrFromEntry(ACCESS_HANDLER_DN, ATTR_AUTHZ_GLOBAL_ACI, true);
-    TestCaseUtils.clearJEBackend(true, "userRoot", "dc=example,dc=com");
   }
 
-   @AfterClass(alwaysRun = true)
-   public void tearDown() throws Exception {
-     modEntries(GLOBAL_DEFAULT_ACIS, DIR_MGR_DN, DIR_MGR_PW);
-  }
+
 
   @BeforeMethod
   public void clearBackend() throws Exception {

--
Gitblit v1.10.0