NdsBeisEsb/src/test/java/com/northgateps/nds/beis/esb/MockNdsDirectoryKernel.java
// For tests, to pre-populate the mocked LDAP repository
For tests, to pre-populate the mocked LDAP repository
For tests to pre - populate the mocked LDAP repository
public void prime(String dn, LdapAttribute... attributes) {
        List<LdapAttribute> attributeList = new ArrayList<LdapAttribute>();
        attributeList.addAll(Arrays.asList(attributes)); 
        accounts.put(dn, attributeList);
    }
public void prime ( String dn , LdapAttribute ... attributes ) { List < LdapAttribute > attributeList = new ArrayList < LdapAttribute > ( ) ; attributeList . addAll ( Arrays . asList ( attributes ) ) ; accounts . put ( dn , attributeList ) ; }
For tests, to pre-populate the mocked LDAP repository
For tests to pre - populate the mocked LDAP repository
// populate a mutable list 