directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1221829 - /directory/apacheds/branches/apacheds-txns/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
Date Wed, 21 Dec 2011 18:17:22 GMT
Author: elecharny
Date: Wed Dec 21 18:17:22 2011
New Revision: 1221829

URL: http://svn.apache.org/viewvc?rev=1221829&view=rev
Log:
Reverted the last commit which was generating a NPE...

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

Modified: directory/apacheds/branches/apacheds-txns/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java?rev=1221829&r1=1221828&r2=1221829&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
(original)
+++ directory/apacheds/branches/apacheds-txns/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/ClientSearchRequestTest.java
Wed Dec 21 18:17:22 2011
@@ -278,18 +278,7 @@ public class ClientSearchRequestTest ext
     @Test(expected = LdapException.class)
     public void testSearchUTF8() throws Exception
     {
-        EntryCursor cursor = null;
-
-        try
-        {
-            cursor = connection.search( "ou=system", "(sn=Emmanuel L\u00e9charny)", SearchScope.ONELEVEL,
"*", "+" );
-            fail();
-        }
-        catch ( Exception e )
-        {
-            cursor.close( e );
-
-            throw e;
-        }
+        connection.search( "ou=system", "(sn=Emmanuel L\u00e9charny)", SearchScope.ONELEVEL,
"*", "+" );
+        fail();
     }
 }



Mime
View raw message