directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r905968 - /directory/clients/ldap/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
Date Wed, 03 Feb 2010 10:13:11 GMT
Author: kayyagari
Date: Wed Feb  3 10:13:08 2010
New Revision: 905968

URL: http://svn.apache.org/viewvc?rev=905968&view=rev
Log:
added a test to check the retrieval of binary AT (@Ignored at the moment)

Modified:
    directory/clients/ldap/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java

Modified: directory/clients/ldap/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java?rev=905968&r1=905967&r2=905968&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
Wed Feb  3 10:13:08 2010
@@ -23,9 +23,11 @@
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
 import java.io.IOException;
+import java.util.Arrays;
 import java.util.List;
 
 import org.apache.directory.ldap.client.api.LdapConnection;
@@ -168,4 +170,15 @@
         
         cursor.close();
     }
+
+    
+    @Ignore( "failing to treat the userPassword AT as a binary attribute" )
+    @Test
+    public void testRetrieveBinaryAttibute() throws Exception
+    {
+        Entry entry = ( ( SearchResultEntry ) connection.lookup( "uid=admin,ou=system" )
).getEntry();
+        
+        assertTrue( Arrays.equals( "secret".getBytes(), entry.get( SchemaConstants.USER_PASSWORD_AT
).getBytes() ) );
+    }
+
 }



Mime
View raw message