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

Jean-Noel Rouvignac
08.06.2015 b8c6b80da1cb6118167a934daa480eb381c59e0e
opendj-server-legacy/src/test/java/org/opends/server/protocols/jmx/JmxConnectTest.java
@@ -509,8 +509,11 @@
    String[] credentials;
    if ((user == null) && (password == null)) {
      credentials = null;
    } else
    }
    else
    {
      credentials = new String[] { user, password };
    }
    env.put("jmx.remote.credentials", credentials);
    env.put("jmx.remote.x.client.connection.check.period", 0);
@@ -543,8 +546,11 @@
    String[] credentials;
    if ((user == null) && (password == null)) {
      credentials = null;
    } else
    }
    else
    {
      credentials = new String[] { user, password };
    }
    env.put("jmx.remote.credentials", credentials);
    // Provide the Trust manager.
@@ -601,7 +607,9 @@
    Attribute status = (Attribute) mbsc.getAttribute(name,
        "ds-cfg-enabled");
    if (status != null)
    {
      status.getValue();
    }
    Attribute attr = new Attribute(
        "ds-cfg-enabled", enabled);
    mbsc.setAttribute(name, attr);