directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1153494 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
Date Wed, 03 Aug 2011 14:04:35 GMT
Author: elecharny
Date: Wed Aug  3 14:04:34 2011
New Revision: 1153494

URL: http://svn.apache.org/viewvc?rev=1153494&view=rev
Log:
Made the DN in createEntry schemaAware

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java?rev=1153494&r1=1153493&r2=1153494&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
Wed Aug  3 14:04:34 2011
@@ -170,7 +170,7 @@ public class ClientServerReplicationIT
         
         assertFalse( consumerSession.exists( provUser.getDn() ) );
         
-        providerSession.add( provUser );
+        providerSession.add( provUser ); // 1
      
         Dn usersContainer = new Dn( schemaManager, "ou=users,dc=example,dc=com" );
         
@@ -178,7 +178,7 @@ public class ClientServerReplicationIT
             "objectClass: organizationalUnit",
             "ou: users" );
         
-        providerSession.add( entry );
+        providerSession.add( entry ); // 2
         
         assertTrue( checkEntryExistence( consumerSession, usersContainer ) );
         waitAndCompareEntries( entry.getDn() );
@@ -207,7 +207,7 @@ public class ClientServerReplicationIT
         
         newName = new Rdn( schemaManager, userDn.getRdn().getName() + "MovedAndRenamed");
         
-        providerSession.moveAndRename( userDn, newParent, newName, false );
+        providerSession.moveAndRename( userDn, newParent, newName, false ); //4
         
         userDn = newParent.add( newName );
 
@@ -309,7 +309,7 @@ public class ClientServerReplicationIT
     {
         String user = "user"+ entryCount.incrementAndGet();
         
-        String dn = "cn=" + user + ",dc=example,dc=com";
+        Dn dn = new Dn( schemaManager, "cn=" + user + ",dc=example,dc=com" );
         
         DefaultEntry entry = new DefaultEntry( schemaManager, dn,
             "objectClass", "person",



Mime
View raw message