Return-Path: X-Original-To: apmail-directory-commits-archive@www.apache.org Delivered-To: apmail-directory-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7F869345 for ; Mon, 9 Apr 2012 22:39:09 +0000 (UTC) Received: (qmail 6963 invoked by uid 500); 9 Apr 2012 22:39:09 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 6932 invoked by uid 500); 9 Apr 2012 22:39:09 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 6925 invoked by uid 99); 9 Apr 2012 22:39:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2012 22:39:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Apr 2012 22:39:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 7D9FA238890B for ; Mon, 9 Apr 2012 22:38:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120409223846.7D9FA238890B@eris.apache.org> 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,