use of com.gitblit.ldap.LdapConnection in project gitblit by gitblit.
the class LdapConnectionTest method testConnect.
@Test
public void testConnect() {
// This test is independent from authentication mode, so run only once.
assumeTrue(authMode == AuthMode.ANONYMOUS);
LdapConnection conn = new LdapConnection(settings);
try {
assertTrue(conn.connect());
} finally {
conn.close();
}
}
Aggregations