881882883884885886887888889
* */ @Test public void testLdapURLDNNoAttrsScopeBase() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system??base" ); assertEquals( "ldap://localhost:123/ou=system", url.toString() ); }
894895896897898899900901902
* */ @Test public void testLdapURLDNNoAttrsDefaultScope() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/ou=system??" ); assertEquals( "ldap://localhost:123/ou=system", url.toString() ); }
907908909910911912913914915
* */ @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() ); }
920921922923924925926927928
* */ @Test public void testLdapURLNoDNAttrsScopeBase() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/?ou,cn?base" ); assertEquals( "ldap://localhost:123/?ou,cn", url.toString() ); }
933934935936937938939940941
* */ @Test public void testLdapURLNoDNAttrsDefaultScope() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/?ou,cn?" ); assertEquals( "ldap://localhost:123/?ou,cn", url.toString() ); }
946947948949950951952953954
* */ @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() ); }
959960961962963964965966967
* */ @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() ); }
972973974975976977978979980
* */ @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() ); }
985986987988989990991992993
* */ @Test public void testLdapURLNoDNNoAttrsNoScopeFilter() throws LdapURLEncodingException { LdapUrl url = new LdapUrl( "ldap://localhost:123/???(cn=test)" ); assertEquals( "ldap://localhost:123/???(cn=test)", url.toString() ); }
9989991000100110021003100410051006
* */ @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() ); }