Examples of evaluateToList()


Examples of org.constretto.ConstrettoConfiguration.evaluateToList()

        final LdapConfigurationStore ldapConfigurationStore = new LdapConfigurationStore(new LdapConfigurationStore(),
                attributes);
        final ConstrettoConfiguration constrettoConfiguration = createConfigurationForLdapConfigurationStore(ldapConfigurationStore);
        assertTrue(constrettoConfiguration.hasValue(attributeName));
        assertEquals(2, constrettoConfiguration.evaluateToList(String.class, attributeName).size());

        verify(attributes).getAll();
        verify(attributesNamingEnumeration, times(2)).hasMore();
        verify(attributesNamingEnumeration).next();
        verify(attribute, times(2)).getID();
View Full Code Here

Examples of org.constretto.ConstrettoConfiguration.evaluateToList()

        final ConstrettoConfiguration configuration = new ConstrettoBuilder(false)
                .createLdapConfigurationStore(initialDirContext)
                    .addDsn("cn=role_developer,ou=groups,dc=constretto,dc=org")
                .done()
                .getConfiguration();
        final List<String> members = configuration.evaluateToList(String.class, "uniquemember");
        assertEquals(2, members.size());


    }
View Full Code Here

Examples of org.constretto.ConstrettoConfiguration.evaluateToList()

                        "dc=constretto,dc=org",
                        "(&(cn=K*)(objectClass=inetOrgPerson))",
                        "uid")
                .done()
                .getConfiguration();
        assertTrue(configuration.evaluateToList(String.class, "kaarenilsen.cn").containsAll(Arrays.asList("Kaare Nilsen", "Kåre Nilsen")));
        initialDirContext.close();

    }

    private ConstrettoConfiguration createConfiguration(LdapConfigurationStore configurationStore) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.