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/TestVLVIndex.java | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestVLVIndex.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestVLVIndex.java
index 66531b4..6101888 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestVLVIndex.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestVLVIndex.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2008 Sun Microsystems, Inc.
+ * Portions Copyright 2011 ForgeRock AS
*/
package org.opends.server.backends.jeb;
@@ -91,6 +92,7 @@
@BeforeClass
public void setUp() throws Exception {
TestCaseUtils.startServer();
+ TestCaseUtils.enableBackend(beID);
SortKey[] sortKeys = new SortKey[3];
sortKeys[0] = new SortKey(DirectoryServer.getAttributeType("givenname"), true);
@@ -214,6 +216,7 @@
@AfterClass
public void cleanUp() throws Exception {
+ TestCaseUtils.disableBackend(beID);
}
/**
--
Gitblit v1.10.0