directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r292591 - /directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
Date Fri, 30 Sep 2005 00:45:42 GMT
Author: elecharny
Date: Thu Sep 29 17:45:37 2005
New Revision: 292591

URL: http://svn.apache.org/viewcvs?rev=292591&view=rev
Log:
Added a test for compond names with different values

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

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java?rev=292591&r1=292590&r2=292591&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/name/LdapNameTest.java
Thu Sep 29 17:45:37 2005
@@ -995,4 +995,13 @@
 
         assertEquals( 0, name1.compareTo( name2 ) );
     }
+    
+    public void testNameComparisonIsInsensitiveToAttributesOrderFailure() throws Exception
+    {
+
+        Name name1 = new LdapName( "cn=HomeDir+cn=Workdir" );
+        Name name2 = new LdapName( "cn=Work+cn=HomeDir" );
+
+        assertEquals( -15, name1.compareTo( name2 ) );
+    }
 }



Mime
View raw message