From commits-return-26522-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Thu Jul 08 18:20:33 2010 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 10390 invoked from network); 8 Jul 2010 18:20:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 18:20:32 -0000 Received: (qmail 23884 invoked by uid 500); 8 Jul 2010 18:20:32 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 23816 invoked by uid 500); 8 Jul 2010 18:20:32 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 23809 invoked by uid 99); 8 Jul 2010 18:20:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 18:20:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 18:20:29 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3FA672388A68; Thu, 8 Jul 2010 18:19:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r961861 - /directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/SearchRequestReturningAttributesTest.java Date: Thu, 08 Jul 2010 18:19:06 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100708181906.3FA672388A68@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Thu Jul 8 18:19:05 2010 New Revision: 961861 URL: http://svn.apache.org/viewvc?rev=961861&view=rev Log: Fixed a NPE in test Modified: directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/SearchRequestReturningAttributesTest.java Modified: directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/SearchRequestReturningAttributesTest.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/SearchRequestReturningAttributesTest.java?rev=961861&r1=961860&r2=961861&view=diff ============================================================================== --- directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/SearchRequestReturningAttributesTest.java (original) +++ directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/search/SearchRequestReturningAttributesTest.java Thu Jul 8 18:19:05 2010 @@ -40,6 +40,7 @@ import org.apache.directory.shared.ldap. import org.apache.directory.shared.ldap.filter.SearchScope; import org.apache.directory.shared.ldap.name.DN; import org.junit.AfterClass; +import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; @@ -76,8 +77,8 @@ public class SearchRequestReturningAttri { private static LdapConnection connection; - @BeforeClass - public static void setup() throws Exception + @Before + public void setup() throws Exception { connection = new LdapNetworkConnection( "localhost", ldapServer.getPort() ); DN bindDn = new DN( "uid=admin,ou=system" );