directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1376382 - /directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
Date Thu, 23 Aug 2012 06:29:46 GMT
Author: elecharny
Date: Thu Aug 23 06:29:45 2012
New Revision: 1376382

URL: http://svn.apache.org/viewvc?rev=1376382&view=rev
Log:
Removed some remaining tests on reverse index

Modified:
    directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java

Modified: directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java?rev=1376382&r1=1376381&r2=1376382&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
(original)
+++ directory/apacheds/branches/apacheds-mvbt/jdbm-partition/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndexTest.java
Thu Aug 23 06:29:45 2012
@@ -138,7 +138,7 @@ public class JdbmIndexTest
     void initIndex() throws Exception
     {
         AttributeType attributeType = schemaManager.lookupAttributeTypeRegistry( SchemaConstants.OU_AT
);
-        JdbmIndex<String, Entry> index = new JdbmIndex<String, Entry>( attributeType.getName()
);
+        JdbmIndex<String, Entry> index = new JdbmIndex<String, Entry>( attributeType.getName(),
false );
         index.setWkDirPath( dbFileDir.toURI() );
         initIndex( index );
     }
@@ -364,7 +364,6 @@ public class JdbmIndexTest
         initIndex();
         assertNull( idx.forwardLookup( "foo" ) );
         assertNull( idx.forwardLookup( "bar" ) );
-        assertNull( idx.reverseLookup( 0L ) );
         assertFalse( idx.forwardGreaterOrEq( "foo", 0L ) );
         assertFalse( idx.forwardGreaterOrEq( "foo", -24L ) );
         assertFalse( idx.forwardGreaterOrEq( "foo", 24L ) );
@@ -425,7 +424,6 @@ public class JdbmIndexTest
         // test add/drop without adding any duplicates
         idx.add( "foo", 0L );
         assertEquals( 0L, ( long ) idx.forwardLookup( "foo" ) );
-        assertEquals( "foo", idx.reverseLookup( 0L ) );
 
         idx.drop( "foo", 0L );
         assertNull( idx.forwardLookup( "foo" ) );
@@ -473,7 +471,6 @@ public class JdbmIndexTest
 
         idx.drop( "bar", 0L );
         assertEquals( 0L, ( long ) idx.forwardLookup( "foo" ) );
-        assertEquals( "foo", idx.reverseLookup( 0L ) );
         assertFalse( idx.forward( "bar", 0L ) );
 
         idx.drop( "foo", 0L );



Mime
View raw message