mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
20.11.2007 8ae56b359274198747536a3b98d8e9b390191968
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.
1 files modified
10 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxTestCase.java 10 ●●●●● patch | view | raw | blame | history
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.
   */