751752753754755756757758759
* */ @Test public void testLdapURLNoDNNoAttrs() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/?" ); assertEquals( "ldap://localhost:123/", url.toString() ); }
764765766767768769770771772
* */ @Test public void testLdapURLNoDNNoAttrsNoScope() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/??" ); assertEquals( "ldap://localhost:123/", url.toString() ); }
777778779780781782783784785
* */ @Test public void testLdapURLNoDNNoAttrsNoScopeNoFilter() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/???" ); assertEquals( "ldap://localhost:123/", url.toString() ); }
790791792793794795796797798
* */ @Test public void testLdapURLDN() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system" ); assertEquals( "ldap://localhost:123/ou=system", url.toString() ); }
803804805806807808809810811
* */ @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() ); }
816817818819820821822823824
* */ @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() ); }
829830831832833834835836837
* */ @Test public void testLdapURLNoDNNoAttrsScope() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/??sub" ); assertEquals( "ldap://localhost:123/??sub", url.toString() ); }
842843844845846847848849850
* */ @Test public void testLdapURLNoDNNoAttrsScopeBase() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/??base" ); assertEquals( "ldap://localhost:123/", url.toString() ); }
855856857858859860861862863
* */ @Test public void testLdapURLNoDNNoAttrsDefaultScope() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/??" ); assertEquals( "ldap://localhost:123/", url.toString() ); }
868869870871872873874875876
* */ @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() ); }