From b9af8f181b7495cb343c280db4ce8979a04bfc91 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 12 Sep 2006 23:12:27 +0000
Subject: [PATCH] This commit changes several aspects of the unit test infrastructure:
---
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java
index 9a95fce..d2431b6 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java
@@ -108,7 +108,7 @@
{
return new Object[][] {
{"cn=JMX Connection Handler,cn=Connection Handlers,cn=config",
- "ds-cfg-listen-port", new Long(1689)},
+ "ds-cfg-listen-port", TestCaseUtils.getServerJmxPort()},
{"cn=JMX Connection Handler,cn=Connection Handlers,cn=config",
"objectclass", null},
{"cn=JMX Connection Handler,cn=Connection Handlers,cn=config",
@@ -178,6 +178,7 @@
throws MalformedURLException, IOException
{
HashMap<String, String[]> env = new HashMap<String, String[]>();
+ long jmxPort = TestCaseUtils.getServerJmxPort();
// Provide the credentials required by the server to successfully
// perform user authentication
@@ -196,7 +197,8 @@
//
JMXServiceURL url = new JMXServiceURL(
- "service:jmx:rmi:///jndi/rmi://localhost:1689/org.opends.server.protocols.jmx.client-unknown");
+ "service:jmx:rmi:///jndi/rmi://localhost:"+ jmxPort +
+ "/org.opends.server.protocols.jmx.client-unknown");
JMXConnector jmxc = null;
try
--
Gitblit v1.10.0