directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1311817 - /directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/IndexTest.java
Date Tue, 10 Apr 2012 16:12:38 GMT
Author: elecharny
Date: Tue Apr 10 16:12:38 2012
New Revision: 1311817

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

Modified:
    directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/IndexTest.java

Modified: directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/IndexTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/IndexTest.java?rev=1311817&r1=1311816&r2=1311817&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/IndexTest.java
(original)
+++ directory/apacheds/branches/index-work/server-integ/src/test/java/org/apache/directory/IndexTest.java
Tue Apr 10 16:12:38 2012
@@ -143,13 +143,14 @@ public class IndexTest
         }
 
         assertFalse( cursor1.next() );
+        
+        cursor1.close();
     }
 
 
     private void assertHasNext( IndexCursor<String, Entry, Long> cursor1, long expectedId
) throws Exception
     {
         assertTrue( cursor1.next() );
-        //System.out.println(cursor1.get());
         assertEquals( expectedId, cursor1.get().getId().longValue() );
     }
 }



Mime
View raw message