directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1128839 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java
Date Sun, 29 May 2011 08:08:01 GMT
Author: kayyagari
Date: Sun May 29 08:08:01 2011
New Revision: 1128839

URL: http://svn.apache.org/viewvc?rev=1128839&view=rev
Log:
o tests for moveAndRename and delete operations

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=1128839&r1=1128838&r2=1128839&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
Sun May 29 08:08:01 2011
@@ -173,6 +173,32 @@ public class ClientServerReplicationIT
         userDn = usersContainer.add( newName );
         
         waitAndCompareEntries( userDn );
+        
+        // now move and rename
+        Dn newParent = usersContainer.getParent();
+        
+        newName = new Rdn( schemaManager, userDn.getRdn().getName() + "MovedAndRenamed");
+        
+        providerSession.moveAndRename( userDn, newParent, newName, false );
+        
+        userDn = newParent.add( newName );
+        waitAndCompareEntries( userDn );
+    }
+    
+    
+    @Test
+    public void testDelete() throws Exception
+    {
+        Entry provUser = createEntry();
+        
+        providerSession.add( provUser );
+        
+        waitAndCompareEntries( provUser.getDn() );
+        
+        providerSession.delete( provUser.getDn() );
+        
+        Thread.sleep( 2000 );
+        assertFalse( consumerSession.exists( provUser.getDn() ) );
     }
     
     



Mime
View raw message