@Test(expected = IllegalStateException.class) public void when_query_is_empty_and_templates_list_is_empty_then_provider_can_be_created_but_throws_ISE_when_getClient_called(){ setSystemProperty(LdapClientProvider.LDAP_QUERY, ""); helper.setPatterns(); provider = new LdapClientProvider(); provider.getClient(); }
public LdapClient getClient(){ if(ldapClient == null){ throw new IllegalStateException("LDAP is not properly configured. Maybe you forgot to put LDAP properties inside cloudstore.properties?"); } return ldapClient; }
LdapClientProvider { public LdapClient getClient(){ if(ldapClient == null){ throw new IllegalStateException("LDAP is not properly configured. Maybe you forgot to put LDAP properties inside cloudstore.properties?"); } return ldapClient; } }
LdapClientProvider { public LdapClient getClient(){ if(ldapClient == null){ throw new IllegalStateException("LDAP is not properly configured. Maybe you forgot to put LDAP properties inside cloudstore.properties?"); } return ldapClient; } protected  LdapClientProvider(); protected  LdapClientProvider(OneTimePadRegistry adminPasswordRegistry); }
LdapClientProvider { public LdapClient getClient(){ if(ldapClient == null){ throw new IllegalStateException("LDAP is not properly configured. Maybe you forgot to put LDAP properties inside cloudstore.properties?"); } return ldapClient; } protected  LdapClientProvider(); protected  LdapClientProvider(OneTimePadRegistry adminPasswordRegistry); LdapClient getClient(); static LdapClientProvider getInstance(); }
LdapClientProvider { public LdapClient getClient(){ if(ldapClient == null){ throw new IllegalStateException("LDAP is not properly configured. Maybe you forgot to put LDAP properties inside cloudstore.properties?"); } return ldapClient; } protected  LdapClientProvider(); protected  LdapClientProvider(OneTimePadRegistry adminPasswordRegistry); LdapClient getClient(); static LdapClientProvider getInstance(); static final String LDAP_TEMPLATE_PATTERN; static final String LDAP_URL; static final String LDAP_QUERY; static final String LDAP_ADMIN_DN; static final String LDAP_QUERY_DN; }