Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 16247 invoked from network); 27 May 2008 05:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 May 2008 05:09:36 -0000 Received: (qmail 42768 invoked by uid 500); 27 May 2008 05:09:38 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 42726 invoked by uid 500); 27 May 2008 05:09:38 -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 42717 invoked by uid 99); 27 May 2008 05:09:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 May 2008 22:09:38 -0700 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; Tue, 27 May 2008 05:08:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C4D08238896F; Mon, 26 May 2008 22:09:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r660381 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java Date: Tue, 27 May 2008 05:09:13 -0000 To: commits@directory.apache.org From: akarasulu@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080527050915.C4D08238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: akarasulu Date: Mon May 26 22:09:08 2008 New Revision: 660381 URL: http://svn.apache.org/viewvc?rev=660381&view=rev Log: who cares what the implementation of the returnd enumeration is - why bother testing that? Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java?rev=660381&r1=660380&r2=660381&view=diff ============================================================================== --- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java (original) +++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java Mon May 26 22:09:08 2008 @@ -360,31 +360,25 @@ SearchControls cons = new SearchControls(); NamingEnumeration e = sysRoot.search( "", "(bogusAttribute=abc123)", cons ); assertNotNull( e ); - assertEquals( e.getClass(), EmptyEnumeration.class ); e = sysRoot.search( "", "(!(bogusAttribute=abc123))", cons ); assertNotNull( e ); assertFalse( e.hasMore() ); - assertEquals( e.getClass(), EmptyEnumeration.class ); e = sysRoot.search( "", "(|(bogusAttribute=abc123)(bogusAttribute=abc123))", cons ); assertNotNull( e ); assertFalse( e.hasMore() ); - assertEquals( e.getClass(), EmptyEnumeration.class ); e = sysRoot.search( "", "(|(bogusAttribute=abc123)(ou=abc123))", cons ); assertNotNull( e ); assertFalse( e.hasMore() ); - assertFalse( e.getClass().equals( EmptyEnumeration.class ) ); e = sysRoot.search( "", "(OBJECTclass=*)", cons ); assertNotNull( e ); assertTrue( e.hasMore() ); - assertFalse( e.getClass().equals( EmptyEnumeration.class ) ); e = sysRoot.search( "", "(objectclass=*)", cons ); assertNotNull( e ); - assertFalse( e.getClass().equals( EmptyEnumeration.class ) ); }