directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1311866 - /directory/apacheds/branches/index-work/protocol-ldap/src/test/java/org/apache/directory/server/ldap/JournalTest.java
Date Tue, 10 Apr 2012 16:56:25 GMT
Author: elecharny
Date: Tue Apr 10 16:56:24 2012
New Revision: 1311866

URL: http://svn.apache.org/viewvc?rev=1311866&view=rev
Log:
Closed cursors

Modified:
    directory/apacheds/branches/index-work/protocol-ldap/src/test/java/org/apache/directory/server/ldap/JournalTest.java

Modified: directory/apacheds/branches/index-work/protocol-ldap/src/test/java/org/apache/directory/server/ldap/JournalTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/protocol-ldap/src/test/java/org/apache/directory/server/ldap/JournalTest.java?rev=1311866&r1=1311865&r2=1311866&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/protocol-ldap/src/test/java/org/apache/directory/server/ldap/JournalTest.java
(original)
+++ directory/apacheds/branches/index-work/protocol-ldap/src/test/java/org/apache/directory/server/ldap/JournalTest.java
Tue Apr 10 16:56:24 2012
@@ -226,6 +226,8 @@ public class JournalTest
 
             pos++;
         }
+        
+        cursor.close();
     }
 
 
@@ -270,6 +272,8 @@ public class JournalTest
             journal.sync();
             deleted++;
         }
+        
+        deleteCursor.close();
 
         // Now check that the first mod is the 501th
         assertEquals( 500, journal.count() );
@@ -282,6 +286,8 @@ public class JournalTest
         ReplicaEventMessage replicaEventMessage = tuple.getValue();
         assertEquals( ChangeType.ADD, replicaEventMessage.getChangeType() );
         assertEquals( "test500", replicaEventMessage.getEntry().get( "ou" ).getString() );
+        
+        cursor.close();
     }
 
 



Mime
View raw message