directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191343 - /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapDNTest.java
Date Sun, 19 Jun 2005 14:41:16 GMT
Author: elecharny
Date: Sun Jun 19 07:41:15 2005
New Revision: 191343

URL: http://svn.apache.org/viewcvs?rev=191343&view=rev
Log:
Changed the tests to reflect the inheritance modification

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapDNTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapDNTest.java?rev=191343&r1=191342&r2=191343&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapDNTest.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/utils/LdapDNTest.java
Sun Jun 19 07:41:15 2005
@@ -71,7 +71,7 @@
      */
     public void testLdapDNNull() throws DecoderException
     {
-        Assert.assertEquals( "", LdapDN.parseDN( null ).toString() );
+        Assert.assertEquals( "", new LdapDN( null ).toString() );
     }
 
     /**
@@ -79,7 +79,7 @@
      */
     public void testLdapDNEmpty() throws DecoderException
     {
-        Assert.assertEquals( "", LdapDN.parseDN( "".getBytes() ).toString() );
+        Assert.assertEquals( "", new LdapDN( "".getBytes() ).toString() );
     }
 
     /**
@@ -87,7 +87,7 @@
      */
     public void testLdapDNSimple() throws DecoderException
     {
-        Assert.assertEquals( "a = b", LdapDN.parseDN( "a = b".getBytes() ).toString() );
+        Assert.assertEquals( "a = b", new LdapDN( "a = b".getBytes() ).toString() );
     }
 
     /**
@@ -95,7 +95,7 @@
      */
     public void testLdapDNComposite() throws DecoderException
     {
-        Assert.assertEquals( "a = b, c = d", LdapDN.parseDN( "a = b, c = d".getBytes() ).toString()
);
+        Assert.assertEquals( "a = b, c = d", new LdapDN( "a = b, c = d".getBytes() ).toString()
);
     }
 
     /**
@@ -104,7 +104,7 @@
     public void testLdapDNCompositeWithSpace() throws DecoderException
     {
         Assert.assertEquals( "a=b, a =b, a= b, a = b, a  =  b",
-            LdapDN.parseDN( "a=b, a =b, a= b, a = b, a  =  b".getBytes() ).toString() );
+                new LdapDN( "a=b, a =b, a= b, a = b, a  =  b".getBytes() ).toString() );
     }
 
     /**
@@ -113,7 +113,7 @@
      */
     public void testLdapDNCompositeSepators() throws DecoderException
     {
-        Assert.assertEquals( "a=b,c=d,e=f", LdapDN.parseDN( "a=b;c=d,e=f".getBytes() ).toString()
);
+        Assert.assertEquals( "a=b,c=d,e=f", new LdapDN( "a=b;c=d,e=f".getBytes() ).toString()
);
     }
 
     /**
@@ -122,7 +122,7 @@
     public void testLdapDNSimpleMultivaluedAttribute() throws DecoderException
     {
         Assert.assertEquals( "a = b + c = d",
-            LdapDN.parseDN( "a = b + c = d".getBytes() ).toString() );
+                new LdapDN( "a = b + c = d".getBytes() ).toString() );
     }
 
     /**
@@ -131,7 +131,7 @@
     public void testLdapDNCompositeMultivaluedAttribute() throws DecoderException
     {
         Assert.assertEquals( "a=b+c=d, e=f + g=h + i=j",
-            LdapDN.parseDN( "a=b+c=d, e=f + g=h + i=j".getBytes() ).toString() );
+                new LdapDN( "a=b+c=d, e=f + g=h + i=j".getBytes() ).toString() );
     }
 
     /**
@@ -140,7 +140,7 @@
     public void testLdapDNOidUpper() throws DecoderException
     {
         Assert.assertEquals( "OID.12.34.56 = azerty",
-            LdapDN.parseDN( "OID.12.34.56 = azerty".getBytes() ).toString() );
+                new LdapDN( "OID.12.34.56 = azerty".getBytes() ).toString() );
     }
 
     /**
@@ -149,7 +149,7 @@
     public void testLdapDNOidLower() throws DecoderException
     {
         Assert.assertEquals( "oid.12.34.56 = azerty",
-            LdapDN.parseDN( "oid.12.34.56 = azerty".getBytes() ).toString() );
+                new LdapDN( "oid.12.34.56 = azerty".getBytes() ).toString() );
     }
 
     /**
@@ -158,7 +158,7 @@
     public void testLdapDNOidWithoutPrefix() throws DecoderException
     {
         Assert.assertEquals( "12.34.56 = azerty",
-            LdapDN.parseDN( "12.34.56 = azerty".getBytes() ).toString() );
+                new LdapDN( "12.34.56 = azerty".getBytes() ).toString() );
     }
 
     /**
@@ -167,7 +167,7 @@
     public void testLdapDNCompositeOidWithoutPrefix() throws DecoderException
     {
         Assert.assertEquals( "12.34.56 = azerty, 7.8 = test",
-            LdapDN.parseDN( "12.34.56 = azerty; 7.8 = test".getBytes() ).toString() );
+                new LdapDN( "12.34.56 = azerty; 7.8 = test".getBytes() ).toString() );
     }
 
     /**
@@ -176,7 +176,7 @@
     public void testLdapDNPairCharAttributeValue() throws DecoderException
     {
         Assert.assertEquals( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00",
-            LdapDN.parseDN( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00".getBytes()
).toString() );
+                new LdapDN( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00".getBytes()
).toString() );
     }
 
     /**
@@ -185,7 +185,7 @@
     public void testLdapDNHexStringAttributeValue() throws DecoderException
     {
         Assert.assertEquals( "a = #0010A0AAFF",
-            LdapDN.parseDN( "a = #0010A0AAFF".getBytes() ).toString() );
+                new LdapDN( "a = #0010A0AAFF".getBytes() ).toString() );
     }
 
     /**
@@ -194,6 +194,6 @@
     public void testLdapDNQuotedAttributeValue() throws DecoderException
     {
         Assert.assertEquals( "a = quoted \\\"value",
-            LdapDN.parseDN( "a = quoted \\\"value".getBytes() ).toString() );
+                new LdapDN( "a = quoted \\\"value".getBytes() ).toString() );
     }
 }



Mime
View raw message