| | |
| | | import java.util.List; |
| | | import java.util.concurrent.Callable; |
| | | |
| | | import org.assertj.core.api.SoftAssertions; |
| | | import org.assertj.core.api.Assertions; |
| | | import org.opends.server.DirectoryServerTestCase; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.api.ConnectionHandler; |
| | |
| | | @Override |
| | | public Void call() throws Exception |
| | | { |
| | | SoftAssertions softly = new SoftAssertions(); |
| | | softly.assertThat(rmiConnector.jmxRmiConnectorNoClientCertificate).isNotNull(); |
| | | softly.assertThat(rmiConnector.jmxRmiConnectorNoClientCertificate.isActive()).isTrue(); |
| | | softly.assertAll(); |
| | | Assertions.assertThat(rmiConnector.jmxRmiConnectorNoClientCertificate).isNotNull(); |
| | | Assertions.assertThat(rmiConnector.jmxRmiConnectorNoClientCertificate.isActive()).isTrue(); |
| | | return null; |
| | | } |
| | | }); |
| | | return jmxConnectionHandler; |
| | | } |
| | | |
| | | private boolean isReady(RmiConnector rmiConnector) |
| | | { |
| | | return rmiConnector.jmxRmiConnectorNoClientCertificate != null |
| | | && rmiConnector.jmxRmiConnectorNoClientCertificate.isActive(); |
| | | } |
| | | |
| | | private JmxConnectionHandler getJmxConnectionHandler(List<ConnectionHandler> handlers) |
| | | { |
| | | for (ConnectionHandler<?> handler : handlers) |