You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/04/10 00:38:46 UTC
svn commit: r1311505 -
/directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
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,