From b4d0187cda0cf29a6250e426873e12eb764694d6 Mon Sep 17 00:00:00 2001
From: davidely <davidely@localhost>
Date: Wed, 18 Apr 2007 11:35:10 +0000
Subject: [PATCH] Fixed a problem with DirectoryServerPluginTestCase, where the tests would fail when run in isolation. Now we make sure that the server is always started.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
index 8a95a9a..b128322 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/plugin/DirectoryServerPluginTestCase.java
@@ -31,11 +31,13 @@
import java.util.HashSet;
import org.testng.annotations.Test;
+import org.testng.annotations.BeforeClass;
import org.opends.server.plugins.NullPlugin;
import org.opends.server.types.DisconnectReason;
import org.opends.server.types.DN;
import org.opends.server.types.operation.*;
+import org.opends.server.TestCaseUtils;
import static org.testng.Assert.*;
@@ -47,6 +49,12 @@
public class DirectoryServerPluginTestCase
extends PluginAPITestCase
{
+ @BeforeClass
+ public void initServer() throws Exception
+ {
+ TestCaseUtils.startServer();
+ }
+
/**
* Tests the <CODE>getPluginEntryDN</CODE> method.
*
--
Gitblit v1.10.0