directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r224598 - /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapUrlTest.java
Date Sun, 24 Jul 2005 10:18:02 GMT
Author: elecharny
Date: Sun Jul 24 03:18:00 2005
New Revision: 224598

URL: http://svn.apache.org/viewcvs?rev=224598&view=rev
Log:
fixed the LdapURL to be able to tests them against their encoded result

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapUrlTest.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapUrlTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapUrlTest.java?rev=224598&r1=224597&r2=224598&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapUrlTest.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapUrlTest.java
Sun Jul 24 03:18:00 2005
@@ -403,7 +403,7 @@
      */
     public void testLdapDNSimpleDNEncoded() throws DecoderException
     {
-        Assert.assertEquals("ldap://directory.apache.org:389/dc=example 2,dc=org", new LdapURL(
"ldap://directory.apache.org:389/dc=example%202,dc=org".getBytes() ).toString() );
+        Assert.assertEquals("ldap://directory.apache.org:389/dc=example%202,dc=org", new
LdapURL( "ldap://directory.apache.org:389/dc=example%202,dc=org".getBytes() ).toString() );
     }
     
     /**
@@ -413,7 +413,7 @@
     {
         try 
         {
-            new LdapURL( "ldap://directory.apache.org:389/dc=example 2,dc : org".getBytes()
);
+            new LdapURL( "ldap://directory.apache.org:389/dc=example%202,dc : org".getBytes()
);
         }
         catch (DecoderException de)
         {
@@ -429,7 +429,7 @@
     {
         try 
         {
-            new LdapURL( "ldap://directory.apache.org:389/dc=example 2,dc = org,".getBytes()
);
+            new LdapURL( "ldap://directory.apache.org:389/dc=example%202,dc = org,".getBytes()
);
         }
         catch (DecoderException de)
         {
@@ -498,7 +498,7 @@
      */
     public void testLdapRFC2255_1() throws DecoderException
     {
-        Assert.assertEquals("ldap:///o=University of Michigan,c=US", new LdapURL( "ldap:///o=University%20of%20Michigan,c=US".getBytes()
).toString() );
+        Assert.assertEquals("ldap:///o=University%20of%20Michigan,c=US", new LdapURL( "ldap:///o=University%20of%20Michigan,c=US".getBytes()
).toString() );
     }
     
     /**
@@ -506,7 +506,7 @@
      */
     public void testLdapRFC2255_2() throws DecoderException
     {
-        Assert.assertEquals("ldap://ldap.itd.umich.edu/o=University of Michigan,c=US", new
LdapURL( "ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US".getBytes() ).toString()
);
+        Assert.assertEquals("ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US",
new LdapURL( "ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US".getBytes() ).toString()
);
     }
 
     /**
@@ -514,7 +514,7 @@
      */
     public void testLdapRFC2255_3() throws DecoderException
     {
-        Assert.assertEquals("ldap://ldap.itd.umich.edu/o=University of Michigan,c=US?postalAddress",
new LdapURL( "ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US?postalAddress".getBytes()
).toString() );
+        Assert.assertEquals("ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US?postalAddress",
new LdapURL( "ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US?postalAddress".getBytes()
).toString() );
     }
 
     /**
@@ -522,7 +522,7 @@
      */
     public void testLdapRFC2255_4() throws DecoderException
     {
-        Assert.assertEquals("ldap://host.com:6666/o=University of Michigan,c=US??sub?(cn=Babs
Jensen)", new LdapURL( "ldap://host.com:6666/o=University%20of%20Michigan,c=US??sub?(cn=Babs%20Jensen)".getBytes()
).toString() );
+        Assert.assertEquals("ldap://host.com:6666/o=University%20of%20Michigan,c=US??sub?(cn=Babs%20Jensen)",
new LdapURL( "ldap://host.com:6666/o=University%20of%20Michigan,c=US??sub?(cn=Babs%20Jensen)".getBytes()
).toString() );
     }
 
     /**
@@ -538,7 +538,7 @@
      */
     public void testLdapRFC2255_6() throws DecoderException
     {
-        Assert.assertEquals("ldap://ldap.question.com/o=Question?,c=US?mail", new LdapURL(
"ldap://ldap.question.com/o=Question%3f,c=US?mail".getBytes() ).toString() );
+        Assert.assertEquals("ldap://ldap.question.com/o=Question%3f,c=US?mail", new LdapURL(
"ldap://ldap.question.com/o=Question%3f,c=US?mail".getBytes() ).toString() );
     }
 
     /**
@@ -546,7 +546,7 @@
      */
     public void testLdapRFC2255_7() throws DecoderException
     {
-        Assert.assertEquals("ldap://ldap.netscape.com/o=Babsco,c=US???(int=\\00\\00\\00\\04)",
new LdapURL( "ldap://ldap.netscape.com/o=Babsco,c=US???(int=%5c00%5c00%5c00%5c04)".getBytes()
).toString() );
+        Assert.assertEquals("ldap://ldap.netscape.com/o=Babsco,c=US???(int=%5c00%5c00%5c00%5c04)",
new LdapURL( "ldap://ldap.netscape.com/o=Babsco,c=US???(int=%5c00%5c00%5c00%5c04)".getBytes()
).toString() );
     }
 
     /**
@@ -554,7 +554,7 @@
      */
     public void testLdapRFC2255_8() throws DecoderException
     {
-        Assert.assertEquals("ldap:///??sub??bindname=cn=Manager,o=Foo", new LdapURL( "ldap:///??sub??bindname=cn=Manager%2co=Foo".getBytes()
).toString() );
+        Assert.assertEquals("ldap:///??sub??bindname=cn=Manager%2co=Foo", new LdapURL( "ldap:///??sub??bindname=cn=Manager%2co=Foo".getBytes()
).toString() );
     }
 
     /**
@@ -562,7 +562,7 @@
      */
     public void testLdapRFC2255_9() throws DecoderException
     {
-        Assert.assertEquals("ldap:///??sub??!bindname=cn=Manager,o=Foo", new LdapURL( "ldap:///??sub??!bindname=cn=Manager%2co=Foo".getBytes()
).toString() );
+        Assert.assertEquals("ldap:///??sub??!bindname=cn=Manager%2co=Foo", new LdapURL( "ldap:///??sub??!bindname=cn=Manager%2co=Foo".getBytes()
).toString() );
     }
 }
 



Mime
View raw message