directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r531919 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Date Tue, 24 Apr 2007 13:05:51 GMT
Author: elecharny
Date: Tue Apr 24 06:05:50 2007
New Revision: 531919

URL: http://svn.apache.org/viewvc?view=rev&rev=531919
Log:
Added some asserts to check that a "" DN is equivalent to an empty dn.

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?view=diff&rev=531919&r1=531918&r2=531919
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Tue Apr 24 06:05:50 2007
@@ -69,7 +69,9 @@
     */
    public void testLdapDNNull()
    {
-       assertEquals( "", new LdapDN().getUpName() );
+       LdapDN dn = new LdapDN();
+       assertEquals( "", dn.getUpName() );
+       assertTrue( dn.isEmpty() );
    }
 
 
@@ -78,7 +80,9 @@
     */
    public void testLdapDNEmpty() throws InvalidNameException
    {
-       assertEquals( "", new LdapDN( "" ).getUpName() );
+       LdapDN dn = new LdapDN( "" );
+       assertEquals( "", dn.getUpName() );
+       assertTrue( dn.isEmpty() );
    }
 
 



Mime
View raw message