directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1346772 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
Date Wed, 06 Jun 2012 08:18:09 GMT
Author: elecharny
Date: Wed Jun  6 08:18:08 2012
New Revision: 1346772

URL: http://svn.apache.org/viewvc?rev=1346772&view=rev
Log:
Changed teh constants by String for clarity in the test

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

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java?rev=1346772&r1=1346771&r2=1346772&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
Wed Jun  6 08:18:08 2012
@@ -482,34 +482,34 @@ public class AddIT extends AbstractLdapT
 
         // Create container
         Attributes container = new BasicAttributes( true );
-        javax.naming.directory.Attribute containerOcls = new BasicAttribute( SchemaConstants.OBJECT_CLASS_AT
);
-        containerOcls.add( SchemaConstants.TOP_OC );
-        containerOcls.add( SchemaConstants.ORGANIZATIONAL_UNIT_OC );
+        javax.naming.directory.Attribute containerOcls = new BasicAttribute( "ObjectClass"
);
+        containerOcls.add( "top" );
+        containerOcls.add( "organizationalUnit" );
         container.put( containerOcls );
-        container.put( SchemaConstants.OU_AT, "Fruits" );
+        container.put( "ou", "Fruits" );
         String containerRdn = "ou=Fruits";
         DirContext containerCtx = ctx.createSubcontext( containerRdn, container );
 
         // Create entry
         Attributes entry = new BasicAttributes( true );
-        javax.naming.directory.Attribute entryOcls = new BasicAttribute( SchemaConstants.OBJECT_CLASS_AT
);
-        entryOcls.add( SchemaConstants.TOP_OC );
-        entryOcls.add( SchemaConstants.ORGANIZATIONAL_UNIT_OC );
+        javax.naming.directory.Attribute entryOcls = new BasicAttribute( "ObjectClass" );
+        entryOcls.add( "top" );
+        entryOcls.add( "organizationalUnit" );
         entry.put( entryOcls );
-        entry.put( SchemaConstants.OU_AT, "favorite" );
+        entry.put( "ou", "favorite" );
         String entryRdn = "ou=favorite";
         containerCtx.createSubcontext( entryRdn, entry );
 
         // Create alias ou=bestFruit,ou=Fruits to entry ou=favorite,ou=Fruits
         String aliasedObjectName = entryRdn + "," + containerCtx.getNameInNamespace();
         Attributes alias = new BasicAttributes( true );
-        javax.naming.directory.Attribute aliasOcls = new BasicAttribute( SchemaConstants.OBJECT_CLASS_AT
);
-        aliasOcls.add( SchemaConstants.TOP_OC );
-        aliasOcls.add( SchemaConstants.EXTENSIBLE_OBJECT_OC );
-        aliasOcls.add( SchemaConstants.ALIAS_OC );
+        javax.naming.directory.Attribute aliasOcls = new BasicAttribute( "ObjectClass" );
+        aliasOcls.add( "top" );
+        aliasOcls.add( "extensibleObject" );
+        aliasOcls.add( "alias" );
         alias.put( aliasOcls );
-        alias.put( SchemaConstants.OU_AT, "bestFruit" );
-        alias.put( SchemaConstants.ALIASED_OBJECT_NAME_AT, aliasedObjectName );
+        alias.put( "ou", "bestFruit" );
+        alias.put( "aliasedObjectName", aliasedObjectName );
         String rdnAlias = "ou=bestFruit";
         containerCtx.createSubcontext( rdnAlias, alias );
 



Mime
View raw message