You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2010/03/07 20:46:05 UTC
svn commit: r920069 -
/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java
Author: seelmann
Date: Sun Mar 7 19:46:04 2010
New Revision: 920069
URL: http://svn.apache.org/viewvc?rev=920069&view=rev
Log:
Catch concrete exception, removed stacktrace of expected exception.
Modified:
directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java
Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java?rev=920069&r1=920068&r2=920069&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java (original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java Sun Mar 7 19:46:04 2010
@@ -30,6 +30,7 @@
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.OperationNotSupportedException;
+import javax.naming.SizeLimitExceededException;
import javax.naming.directory.DirContext;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;
@@ -268,9 +269,9 @@
results.add( result );
}
}
- catch ( Exception e )
+ catch ( SizeLimitExceededException e )
{
- e.printStackTrace();
+ // e.printStackTrace();
hasSizeLimitException = true;
break;
}