From 5d650a123e46c0c86fe3e440fc9dbf04cd831fc9 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Wed, 15 Jun 2011 15:51:32 +0000
Subject: [PATCH] Tidy up unit-tests so that not all backends are always enabled, and replication related databases are deleted after tests.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java
index 4c1256c..2b142ad 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestBackendImpl.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2009 Sun Microsystems, Inc.
+ * Portions Copyright 2011 ForgeRock AS
*/
package org.opends.server.backends.jeb;
@@ -76,6 +77,7 @@
// This test suite depends on having the schema available, so we'll make
// sure the server is started.
TestCaseUtils.startServer();
+ TestCaseUtils.enableBackend("indexRoot");
homeDirName = "db_index_test";
@@ -534,6 +536,7 @@
@AfterClass
public void cleanUp() throws Exception {
+ TestCaseUtils.disableBackend("importRoot");
}
@Test(expectedExceptions = DirectoryException.class)
--
Gitblit v1.10.0