From b43566083f6eda95b6253aa77848de78a64a511f Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 19 Aug 2007 22:11:30 +0000
Subject: [PATCH] Update the JmxTestCase.setUp() method to ensure that the test backend is always initialized and contains the parent entry, since some JMX test methods assume that to be true.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java
index d039bdf..75f58f7 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java
@@ -45,14 +45,14 @@
import org.testng.annotations.Test;
/**
- * An abstract class that all JMX unit test should extend.
+ * An abstract class that all JMX unit test should extend.
*/
@Test(groups = { "precommit", "jmx" })
public abstract class JmxTestCase extends DirectoryServerTestCase
{
/**
* Set up the environment for performing the tests in this suite.
- *
+ *
* @throws Exception
* If the environment could not be set up.
*/
@@ -61,6 +61,8 @@
{
// Make sure that the server is up and running.
TestCaseUtils.startServer();
+ TestCaseUtils.initializeTestBackend(true);
+
synchronized (this)
{
this.wait(500);
@@ -74,7 +76,7 @@
/**
* Get a reference to the JMX connection handler.
- *
+ *
* @throws an
* Exception is something went wrong.
*/
@@ -114,7 +116,7 @@
/**
* Enable JMX with the port chosen in TestCaseUtils.
- *
+ *
* @throws Exception
* if the handler cannot be enabled.
*/
--
Gitblit v1.10.0