directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1334168 - /directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAddRequestTest.java
Date Fri, 04 May 2012 20:41:07 GMT
Author: elecharny
Date: Fri May  4 20:41:07 2012
New Revision: 1334168

URL: http://svn.apache.org/viewvc?rev=1334168&view=rev
Log:
Formating

Modified:
    directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAddRequestTest.java

Modified: directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAddRequestTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAddRequestTest.java?rev=1334168&r1=1334167&r2=1334168&view=diff
==============================================================================
--- directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAddRequestTest.java
(original)
+++ directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/ClientAddRequestTest.java
Fri May  4 20:41:07 2012
@@ -349,6 +349,7 @@ public class ClientAddRequestTest extend
         assertEquals( 2, count );
     }
     
+    
     /**
      * the below test fails cause the API is failing to
      * preserve the UP name of the attribute of RDN
@@ -357,11 +358,12 @@ public class ClientAddRequestTest extend
     @Test
     public void testPreserveRdnUpName() throws Exception
     {
+        connection.setTimeOut( 0L );
         Dn dn = new Dn( getService().getSchemaManager(), "cn=testadd,ou=system" );
-        Entry entry = new DefaultEntry( dn );
-        entry.add( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.PERSON_OC );
-        entry.add( SchemaConstants.CN_AT, "testadd" );
-        entry.add( SchemaConstants.SN_AT, "testadd_sn" );
+        Entry entry = new DefaultEntry( dn,
+            "ObjectClass: person",
+            "cn: testadd",
+            "sn: testadd_sn" );
 
         connection.add( entry );
 



Mime
View raw message