You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/11/20 23:37:39 UTC

svn commit: r345789 - /directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapDNTest.java

Author: elecharny
Date: Sun Nov 20 14:37:36 2005
New Revision: 345789

URL: http://svn.apache.org/viewcvs?rev=345789&view=rev
Log:
Fixed the test accordingly to the DNParser modification

Modified:
    directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapDNTest.java

Modified: directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapDNTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapDNTest.java?rev=345789&r1=345788&r2=345789&view=diff
==============================================================================
--- directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapDNTest.java (original)
+++ directory/shared/ldap/trunk/apache2-provider/src/test/org/apache/asn1new/ldap/codec/primitives/LdapDNTest.java Sun Nov 20 14:37:36 2005
@@ -1047,9 +1047,9 @@
     
     public void testStringParser() throws Exception
     {
-        LdapDN name = DNParser.parse( "CN = Emmanuel  Lécharny" );
+        Name name = new DNParser().parse( "CN = Emmanuel  Lécharny" );
         
-        Assert.assertEquals( "CN = Emmanuel  Lécharny", name.getName() );
+        Assert.assertEquals( "CN = Emmanuel  Lécharny", ((LdapDN)name).getName() );
         Assert.assertEquals( "cn=Emmanuel  Lécharny", name.toString() );
     }
 }