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

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


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

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


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

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

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

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

     *
     */
    @Test
    public void testLdapURLDN() 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 testLdapURLDNAttrs() throws LdapURLEncodingException
    {
        LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system?ou,dc,cn" );

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

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

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

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

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

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

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

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

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

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

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