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/12/28 14:44:31 UTC
svn commit: r359518 -
/directory/shared/ldap/branches/DN-refactoring/common/src/test/org/apache/ldap/common/name/DnParserTest.java
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 ) );
}