Package org.eurekastreams.server.persistence.mappers.ldap

Examples of org.eurekastreams.server.persistence.mappers.ldap.LdapGroup


     * Test performing the action.
     */
    @Test
    public final void testPerformActionWithGroup()
    {
        LdapGroup group = context.mock(LdapGroup.class);
        results.add(group);

        context.checking(new Expectations()
        {
            {
View Full Code Here


        DirContextAdapter dir = (DirContextAdapter) inCtx;
       
        //This is the callback for the PagedLdapSearch, getNameInNamespace returns the fully qualified
        //dn for the result.  This is preferred over getDn which just returns the relative dn without
        //the base path if it was supplied by the ldaptemplate during search.
        return new LdapGroup(new DistinguishedName(dir.getNameInNamespace()));
    }
View Full Code Here

                allowing(ctx).getNameInNamespace();
                will(returnValue(dn));
            }
        });

        LdapGroup result = (LdapGroup) sut.mapFromContext(ctx);

        assertEquals(dn, result.getDistinguishedName().toCompactString());
        context.assertIsSatisfied();
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.ldap.LdapGroup

Copyright © 2018 www.massapicom. 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.