directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1226425 - /directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/search/AliasSearchIT.java
Date Mon, 02 Jan 2012 14:03:48 GMT
Author: elecharny
Date: Mon Jan  2 14:03:48 2012
New Revision: 1226425

URL: http://svn.apache.org/viewvc?rev=1226425&view=rev
Log:
Close a cursor that was still opened

Modified:
    directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/search/AliasSearchIT.java

Modified: directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/search/AliasSearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/search/AliasSearchIT.java?rev=1226425&r1=1226424&r2=1226425&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/search/AliasSearchIT.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/search/AliasSearchIT.java
Mon Jan  2 14:03:48 2012
@@ -573,10 +573,11 @@ public class AliasSearchIT extends Abstr
     {
         List<String> nextResults = new ArrayList<String>();
 
-        ExprNode exprNode = FilterParser.parse(getService().getSchemaManager(), filter);
+        ExprNode exprNode = FilterParser.parse( getService().getSchemaManager(), filter );
         EntryFilteringCursor cursor = getService().getAdminSession().search( new Dn( base
), scope, exprNode,
             aliasDerefMode, null );
         cursor.beforeFirst();
+
         while ( cursor.next() )
         {
             nextResults.add( cursor.get().getDn().getName() );
@@ -586,6 +587,7 @@ public class AliasSearchIT extends Abstr
         {
             List<String> prevResults = new ArrayList<String>();
             cursor.afterLast();
+
             while ( cursor.previous() )
             {
                 prevResults.add( 0, cursor.get().getDn().getName() );
@@ -599,6 +601,8 @@ public class AliasSearchIT extends Abstr
             LOG.warn( "Partition doesn't support previous test" );
         }
 
+        cursor.close();
+
         return nextResults;
     }
 



Mime
View raw message