directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1226755 - /directory/apacheds/branches/apacheds-txns/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
Date Tue, 03 Jan 2012 12:28:44 GMT
Author: elecharny
Date: Tue Jan  3 12:28:43 2012
New Revision: 1226755

URL: http://svn.apache.org/viewvc?rev=1226755&view=rev
Log:
Minor refactoring

Modified:
    directory/apacheds/branches/apacheds-txns/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java

Modified: directory/apacheds/branches/apacheds-txns/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java?rev=1226755&r1=1226754&r2=1226755&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
(original)
+++ directory/apacheds/branches/apacheds-txns/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
Tue Jan  3 12:28:43 2012
@@ -1369,12 +1369,11 @@ public class AddIT extends AbstractLdapT
 
         Dn dn = new Dn( "cn=Kate Bush," + BASE );
 
-        Entry personEntry = new DefaultEntry();
-        personEntry.add( SchemaConstants.OBJECT_CLASS_AT, "person" );
-        personEntry.add( SchemaConstants.CN_AT, "Kate Bush" );
-        personEntry.add( SchemaConstants.SN_AT, "Bush" );
-        personEntry.add( "nonExistingAttribute", "value" );
-        personEntry.setDn( dn );
+        Entry personEntry = new DefaultEntry( dn,
+            "objectClass: person",
+            "cn: Kate Bush",
+            "sn: Bush",
+            "nonExistingAttribute: value" );
 
         try
         {



Mime
View raw message