directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1311506 - /directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
Date Mon, 09 Apr 2012 22:45:43 GMT
Author: elecharny
Date: Mon Apr  9 22:45:42 2012
New Revision: 1311506

URL: http://svn.apache.org/viewvc?rev=1311506&view=rev
Log:
Closing cursors in tests

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

Modified: directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java?rev=1311506&r1=1311505&r2=1311506&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
(original)
+++ directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceIT.java
Mon Apr  9 22:45:42 2012
@@ -116,6 +116,7 @@ public class ExceptionServiceIT extends 
         EntryCursor cursor = getAdminConnection( getService() ).search( "ou=blah", "(objectClass=*)",
             SearchScope.ONELEVEL, "*" );
         assertFalse( cursor.next() );
+        cursor.close();
     }
 
 
@@ -132,6 +133,8 @@ public class ExceptionServiceIT extends 
             SearchScope.ONELEVEL, "*" );
 
         assertFalse( cursor.next() );
+        
+        cursor.close();
     }
 
 



Mime
View raw message