directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1484614 - /directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
Date Mon, 20 May 2013 21:54:16 GMT
Author: seelmann
Date: Mon May 20 21:54:15 2013
New Revision: 1484614

URL: http://svn.apache.org/r1484614
Log:
Added test to demonstrate DIRAPI-140

Modified:
    directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java

Modified: directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java?rev=1484614&r1=1484613&r2=1484614&view=diff
==============================================================================
--- directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
(original)
+++ directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
Mon May 20 21:54:15 2013
@@ -356,4 +356,31 @@ public class ClientSearchRequestTest ext
     
         searchCursor.close();
     }
+
+
+    /**
+     * Test to demonstrate https://issues.apache.org/jira/browse/DIRAPI-140
+     */
+    @Test
+    public void test_DIRAPI140() throws Exception
+    {
+        for ( int i = 0; i < 100; i++ )
+        {
+            System.out.println( "Loop " + i );
+
+            SearchRequest req = new SearchRequestImpl();
+            req.setScope( SearchScope.SUBTREE );
+            req.addAttributes( "*" );
+            req.setTimeLimit( 0 );
+            req.setBase( new Dn( "ou=system" ) );
+            req.setFilter( "(cn=user1)" );
+
+            SearchCursor searchCursor = connection.search( req );
+
+            assertTrue( searchCursor.next() );
+
+            searchCursor.close();
+        }
+    }
+
 }



Mime
View raw message