Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 73623 invoked from network); 3 Oct 2010 14:18:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Oct 2010 14:18:37 -0000 Received: (qmail 58189 invoked by uid 500); 3 Oct 2010 14:18:36 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 58135 invoked by uid 500); 3 Oct 2010 14:18:35 -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 58128 invoked by uid 99); 3 Oct 2010 14:18:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Oct 2010 14:18:35 +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; Sun, 03 Oct 2010 14:18:32 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AC57E23889E3; Sun, 3 Oct 2010 14:18:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1003969 - /directory/apacheds/trunk/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndexTest.java Date: Sun, 03 Oct 2010 14:18:11 -0000 To: commits@directory.apache.org From: kayyagari@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101003141811.AC57E23889E3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kayyagari Date: Sun Oct 3 14:18:11 2010 New Revision: 1003969 URL: http://svn.apache.org/viewvc?rev=1003969&view=rev Log: o added a assertion for checking the use of ParentIdAndRdnComparator of RDN index Modified: directory/apacheds/trunk/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndexTest.java Modified: directory/apacheds/trunk/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndexTest.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndexTest.java?rev=1003969&r1=1003968&r2=1003969&view=diff ============================================================================== --- directory/apacheds/trunk/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndexTest.java (original) +++ directory/apacheds/trunk/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmRdnIndexTest.java Sun Oct 3 14:18:11 2010 @@ -285,13 +285,19 @@ public class JdbmRdnIndexTest { initIndex(); - ParentIdAndRdn key = new ParentIdAndRdn( 0L, new RDN( "cn=key" ) ); + ParentIdAndRdn key = new ParentIdAndRdn( 0L, new RDN( "cn=key", schemaManager ) ); assertNull( idx.forwardLookup( key ) ); idx.add( key, 0l ); assertEquals( 0, ( long ) idx.forwardLookup( key ) ); assertEquals( key, idx.reverseLookup( 0l ) ); + + // check with the different case in UP name, this ensures that the custom + // key comparator is used + key = new ParentIdAndRdn( 0L, new RDN( "cn=KEY", schemaManager ) ); + assertEquals( 0, ( long ) idx.forwardLookup( key ) ); + assertEquals( key, idx.reverseLookup( 0l ) ); }