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

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


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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        assertEquals( "ldap://localhost:123/ou=system???(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.