@Test public void testSearchControlsConfig() { Configuration config = new Configuration(); int searchTimeout = 1234; config.setSearchTimeout(searchTimeout); int countLimit = 32; config.setCountLimit(countLimit); LdapFacade facade = new LdapFacade(config); SearchControls controls = facade.getSearchControls(); assertEquals(searchTimeout, controls.getTimeLimit()); assertEquals(countLimit, controls.getCountLimit()); }
public SearchControls getSearchControls() { return controls; }
LdapFacade extends AbstractLdapProvider { public SearchControls getSearchControls() { return controls; } }
LdapFacade extends AbstractLdapProvider { public SearchControls getSearchControls() { return controls; } LdapFacade(Configuration cfg); }
LdapFacade extends AbstractLdapProvider { public SearchControls getSearchControls() { return controls; } LdapFacade(Configuration cfg); @Override void close(); List<LdapServer> getServers(); LdapFacade setServers(List<LdapServer> servers, int connectTimeout, int readTimeout); int getInterval(); void setInterval(int interval); String getSearchBase(); void setSearchBase(String base); @Override boolean isConfigured(); @Override LdapSearchResult<Map<String, Set<String>>> lookupLdapContent(String dn, String filter, String[] values); SearchControls getSearchControls(); @Override String toString(); }
LdapFacade extends AbstractLdapProvider { public SearchControls getSearchControls() { return controls; } LdapFacade(Configuration cfg); @Override void close(); List<LdapServer> getServers(); LdapFacade setServers(List<LdapServer> servers, int connectTimeout, int readTimeout); int getInterval(); void setInterval(int interval); String getSearchBase(); void setSearchBase(String base); @Override boolean isConfigured(); @Override LdapSearchResult<Map<String, Set<String>>> lookupLdapContent(String dn, String filter, String[] values); SearchControls getSearchControls(); @Override String toString();  }