111112113114115116117118
return Objects.equal(desiredResult, other.desiredResult); } } private void setupDao() { dao = new LdapDao("localhost", 10389); dao.connect("uid=admin,ou=system", "secret"); }
63646566676869
@Before public void doBefore() throws Exception { setupConnection(); setupTests(); dao = new LdapDao(connection); }
7172737475767778798081
if (attributes.containsKey("ldapServer.syncPeriodInMilliseconds")) { ServerConfig.syncPeriodInMilliseconds = Long.valueOf(attributes.get("ldapServer.syncPeriodInMilliseconds")); } ldapDao = new LdapDao(ServerConfig.host, ServerConfig.port); instance.setLdapDao(ldapDao); setupSynchronization(); return instance;
47484950515253
ldapService = new UserProjectsLdapServiceImpl(ldapDao); } private void setupLdapDao() throws Exception { LdapConnection ldapConnection = ServerIntegrationUtils.getAdminConnection(getLdapServer()); ldapDao = new LdapDao(ldapConnection); }