You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/02/03 11:13:11 UTC
svn commit: r905968 -
/directory/clients/ldap/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
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() ) );
+ }
+
}