Package org.apache.directory.api.ldap.model.url

Examples of org.apache.directory.api.ldap.model.url.LdapUrl


     *
     */
    @Test
    public void testLdapURLNoDNAttrsNoScopeFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/?cn,ou,dc??(cn=test)" );

        assertEquals( "ldap://localhost:123/?cn,ou,dc??(cn=test)", url.toString() );
    }
View Full Code Here


     *
     */
    @Test
    public void testLdapURLNoDNNoAttrsScopeFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/??sub?(cn=test)" );

        assertEquals( "ldap://localhost:123/??sub?(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLNoDNNoAttrsScopeBaseFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/??base?(cn=test)" );

        assertEquals( "ldap://localhost:123/???(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLNoDNAttrsScopeFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/?cn,ou,dc?sub?(cn=test)" );

        assertEquals( "ldap://localhost:123/?cn,ou,dc?sub?(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLNoDNAttrsScopeBaseFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/?cn,ou,dc?base?(cn=test)" );

        assertEquals( "ldap://localhost:123/?cn,ou,dc??(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLDNNoAttrsScopeFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system??sub?(cn=test)" );

        assertEquals( "ldap://localhost:123/ou=system??sub?(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLDNNoAttrsScopeBaseFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system??base?(cn=test)" );

        assertEquals( "ldap://localhost:123/ou=system???(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLDNAttrsNoScopeFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system?cn,dc,ou??(cn=test)" );

        assertEquals( "ldap://localhost:123/ou=system?cn,dc,ou??(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLDNAttrsScopeFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system?cn,ou,dc?sub?(cn=test)" );

        assertEquals( "ldap://localhost:123/ou=system?cn,ou,dc?sub?(cn=test)", url.toString() );
    }
View Full Code Here

     *
     */
    @Test
    public void testLdapURLDNAttrsScopeBaseFilter() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system?cn,ou,dc?base?(cn=test)" );

        assertEquals( "ldap://localhost:123/ou=system?cn,ou,dc??(cn=test)", url.toString() );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.model.url.LdapUrl

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.