directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r920069 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java
Date Sun, 07 Mar 2010 19:46:05 GMT
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;
             }



Mime
View raw message