directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r359518 - /directory/shared/ldap/branches/DN-refactoring/common/src/test/org/apache/ldap/common/name/DnParserTest.java
Date Wed, 28 Dec 2005 13:44:31 GMT
Author: elecharny
Date: Wed Dec 28 05:44:28 2005
New Revision: 359518

URL: http://svn.apache.org/viewcvs?rev=359518&view=rev
Log:
As the method getString() has been removed, changed the test
by using getNormName()

Modified:
    directory/shared/ldap/branches/DN-refactoring/common/src/test/org/apache/ldap/common/name/DnParserTest.java

Modified: directory/shared/ldap/branches/DN-refactoring/common/src/test/org/apache/ldap/common/name/DnParserTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/test/org/apache/ldap/common/name/DnParserTest.java?rev=359518&r1=359517&r2=359518&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/test/org/apache/ldap/common/name/DnParserTest.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/test/org/apache/ldap/common/name/DnParserTest.java
Wed Dec 28 05:44:28 2005
@@ -63,7 +63,7 @@
     	NameParser dnParser = DnParser.getNameParser();
 
     	Assert.assertEquals( "a = b", (( LdapDN )dnParser.parse( "a = b" )).getName() );
-        Assert.assertEquals( "a=b", (( LdapDN )dnParser.parse( "a = b" )).getString() );
+        Assert.assertEquals( "a=b", (( LdapDN )dnParser.parse( "a = b" )).getNormName() );
     }
 
     /**
@@ -210,7 +210,7 @@
         
         byte[] bytes = dn.getBytes();
         
-        Assert.assertEquals( 30, dn.getNbBytes() );
+        Assert.assertEquals( 30, bytes.length );
         Assert.assertEquals("cn=John,ou=People,ou=Marketing", StringTools.utf8ToString( bytes
) );
     }
     



Mime
View raw message