| | |
| | | boolean expectedResult) throws Exception { |
| | | OpendsJmxConnector connector = connect(user, password, |
| | | TestCaseUtils.getServerJmxPort()); |
| | | assertEquals((connector != null), expectedResult); |
| | | assertEquals(connector != null, expectedResult); |
| | | if (connector != null) { |
| | | connector.close(); |
| | | } |
| | |
| | | // Provide the credentials required by the server to successfully |
| | | // perform user authentication |
| | | String[] credentials; |
| | | if ((user == null) && (password == null)) { |
| | | if (user == null && password == null) { |
| | | credentials = null; |
| | | } |
| | | else |
| | |
| | | // Provide the credentials required by the server to successfully |
| | | // perform user authentication |
| | | String[] credentials; |
| | | if ((user == null) && (password == null)) { |
| | | if (user == null && password == null) { |
| | | credentials = null; |
| | | } |
| | | else |