Esempio n. 1
0
 /** {@inheritDoc} */
 @Override()
 public void finalizeThread() {
   if (conn != null) {
     conn.close();
     conn = null;
   }
 }
Esempio n. 2
0
 /** {@inheritDoc} */
 @Override()
 public synchronized void destroyThread() {
   if (conn != null) {
     conn.close();
     conn = null;
   }
 }
 @Test
 public void testInMemoryLDAPSetup() throws Exception {
   // Get a plain connection (unencrypted) to the server's LDAP listener
   LDAPConnection conn = ldapServer.getConnection("LDAP");
   LDAPTestUtils.assertEntryExists(conn, "cn=Barbara Jensen,ou=People,dc=example,dc=com");
   conn.close();
 }