directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1311505 - /directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
Date Mon, 09 Apr 2012 22:38:46 GMT
Author: elecharny
Date: Mon Apr  9 22:38:46 2012
New Revision: 1311505

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

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

Modified: directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java?rev=1311505&r1=1311504&r2=1311505&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
(original)
+++ directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
Mon Apr  9 22:38:46 2012
@@ -143,6 +143,8 @@ public class CollectiveAttributeServiceI
 
             resultMap.put( entry.getDn().getName(), entry );
         }
+        
+        cursor.close();
 
         return resultMap;
     }
@@ -159,6 +161,8 @@ public class CollectiveAttributeServiceI
             Entry entry = cursor.get();
             resultMap.put( entry.getDn().getName(), entry );
         }
+        
+        cursor.close();
 
         return resultMap;
     }
@@ -177,6 +181,8 @@ public class CollectiveAttributeServiceI
 
             resultMap.put( entry.getDn().getName(), entry );
         }
+        
+        cursor.close();
 
         return resultMap;
     }
@@ -344,6 +350,8 @@ public class CollectiveAttributeServiceI
             found = true;
             break;
         }
+        
+        cursor.close();
 
         assertTrue( found );
     }
@@ -383,6 +391,8 @@ public class CollectiveAttributeServiceI
             assertTrue( entry.contains( "ou", "services" ) );
             assertTrue( entry.contains( "c-ou", "configuration" ) );
         }
+        
+        responses.close();
 
         // ------------------------------------------------------------------
         // test an entry that should show the collective attribute c-ou,



Mime
View raw message