From dbbc208fb6d478641835de3514c42dffb42a43ad Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Tue, 05 Sep 2006 07:32:58 +0000
Subject: [PATCH] start the schema before the synchronization tests are started so that they can be run without running the core tests first.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/ModifyConflictTest.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/ModifyConflictTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/ModifyConflictTest.java
index 2ed2b54..21f2ee9 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/ModifyConflictTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/ModifyConflictTest.java
@@ -33,11 +33,14 @@
 import java.util.Map;
 
 
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 import static org.testng.Assert.*;
 
 import static org.opends.server.synchronization.OperationContext.*;
 
+import org.opends.server.SchemaFixture;
 import org.opends.server.core.DirectoryServer;
 import org.opends.server.core.ModifyOperation;
 import org.opends.server.protocols.internal.InternalClientConnection;
@@ -274,4 +277,27 @@
       assertEquals(0, mods.size());
     }
   }
+  
+  /**
+   * Set up the environment for performing the tests in this suite.
+   *
+   * @throws Exception
+   *           If the environment could not be set up.
+   */
+  @BeforeClass
+  public void setUp() throws Exception {
+    // This test suite depends on having the schema available.
+    SchemaFixture.FACTORY.setUp();
+  }
+
+  /**
+   * Tears down the environment for performing the tests in this suite.
+   *
+   * @throws Exception
+   *           If the environment could not be finalized.
+   */
+  @AfterClass
+  public void tearDown() throws Exception {
+    SchemaFixture.FACTORY.tearDown();
+  }
 }

--
Gitblit v1.10.0