directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1403743 - /directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/entry/SchemaAwareAttributeTest.java
Date Tue, 30 Oct 2012 15:42:44 GMT
Author: elecharny
Date: Tue Oct 30 15:42:44 2012
New Revision: 1403743

URL: http://svn.apache.org/viewvc?rev=1403743&view=rev
Log:
Added some more tests to check that comparing binary values work well.

Modified:
    directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/entry/SchemaAwareAttributeTest.java

Modified: directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/entry/SchemaAwareAttributeTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/entry/SchemaAwareAttributeTest.java?rev=1403743&r1=1403742&r2=1403743&view=diff
==============================================================================
--- directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/entry/SchemaAwareAttributeTest.java
(original)
+++ directory/shared/trunk/integ/src/test/java/org/apache/directory/shared/ldap/entry/SchemaAwareAttributeTest.java
Tue Oct 30 15:42:44 2012
@@ -1013,6 +1013,22 @@ public class SchemaAwareAttributeTest
         attr9.add( BYTES2 );
         attr10.add( "a", "b" );
         assertFalse( attr9.equals( attr10 ) );
+        
+        Attribute attr11 = new DefaultAttribute( atPwd, BYTES1 );
+        Attribute attr12 = new DefaultAttribute( atPwd, BYTES1 );
+        
+        assertTrue( attr11.get().equals( attr12.get() ) );
+        assertTrue( attr12.get().equals( attr11.get() ) );
+
+        Attribute attr13 = new DefaultAttribute( "userPassword", BYTES1 );
+        
+        assertTrue( attr11.get().equals( attr13.get() ) );
+        assertTrue( attr13.get().equals( attr11.get() ) );
+        
+        Attribute attr14 = new DefaultAttribute( "userPassword", BYTES1 );
+        
+        assertTrue( attr14.get().equals( attr13.get() ) );
+        assertTrue( attr13.get().equals( attr14.get() ) );
     }
 
 



Mime
View raw message