From cb3c4e8dc4d6096355110d252cadcf0b1cc63ace Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 16 Apr 2007 21:18:16 +0000
Subject: [PATCH] Update the TestCaseUtils class to change the return types of the getServerLdapPort, getServerLdapsPort, and getServerJmxPort methods to be int instead of long, and eliminate lots of now-unnecessary casts.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/JmxConnectTest.java |    4 ++--
 1 files changed, 2 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 2af31fb..6b58c56 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
@@ -368,8 +368,8 @@
   public void sslConnect() throws Exception {
     // Enable SSL by setting ds-cfg-use-ssl boolean and the
     // certificate alias using ds-cfg-ssl-cert-nickname attribute.
-    int initJmxPort = (int) TestCaseUtils.getServerJmxPort();
-    
+    int initJmxPort = TestCaseUtils.getServerJmxPort();
+
     Entry entry = TestCaseUtils
         .makeEntry(
             "dn: cn=JMX Connection Handler,cn=Connection Handlers,cn=config",

--
Gitblit v1.10.0