| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2012 ForgeRock AS. |
| | | */ |
| | | |
| | | package com.forgerock.opendj.ldap; |
| | |
| | | |
| | | // Establish a socket connection to see if the transport factory works. |
| | | final Socket socket = new Socket(); |
| | | socket.connect(socketAddress); |
| | | try { |
| | | socket.connect(socketAddress); |
| | | |
| | | // Successfully connected if there is no exception. |
| | | assertTrue(socket.isConnected()); |
| | | // Don't stop the transport because it is shared with the ldap server. |
| | | // Successfully connected if there is no exception. |
| | | assertTrue(socket.isConnected()); |
| | | // Don't stop the transport because it is shared with the ldap server. |
| | | } finally { |
| | | socket.close(); |
| | | } |
| | | } |
| | | } |