directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r642785 - /directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreTest.java
Date Sun, 30 Mar 2008 17:21:51 GMT
Author: akarasulu
Date: Sun Mar 30 10:21:50 2008
New Revision: 642785

URL: http://svn.apache.org/viewvc?rev=642785&view=rev
Log:
fixing slight breakage with move operation

Modified:
    directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreTest.java

Modified: directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreTest.java?rev=642785&r1=642784&r2=642785&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreTest.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStoreTest.java
Sun Mar 30 10:21:50 2008
@@ -31,10 +31,10 @@
 import org.apache.directory.server.schema.registries.*;
 import org.apache.directory.server.schema.SerializableComparator;
 import org.apache.directory.server.core.entry.DefaultServerEntry;
-import org.apache.directory.server.core.entry.ServerEntryUtils;
 import org.apache.directory.server.xdbm.IndexNotFoundException;
 import org.apache.directory.server.xdbm.IndexEntry;
 import org.apache.directory.server.xdbm.Index;
+import org.apache.directory.server.xdbm.tools.StoreUtils;
 import org.apache.directory.server.core.cursor.Cursor;
 import org.apache.directory.server.constants.ApacheSchemaConstants;
 import org.apache.directory.shared.ldap.name.LdapDN;
@@ -104,7 +104,7 @@
 
         store.addIndex( new JdbmIndex( SchemaConstants.OU_AT_OID ) );
         store.addIndex( new JdbmIndex( SchemaConstants.UID_AT_OID ) );
-        JdbmStoreUtil.initWithExampleData( store, registries );
+        StoreUtils.loadExampleData( store, registries );
         LOG.debug( "Created new store" );
     }
 
@@ -376,10 +376,10 @@
       Cursor<IndexEntry<Long,Attributes>> cursor = idx.forwardCursor( 2L );
       
       assertTrue( cursor.next() );
-      assertEquals( 5, cursor.get().getId() );
+      assertEquals( 5, ( long ) cursor.get().getId() );
       
       assertTrue( cursor.next() );
-      assertEquals( 6, cursor.get().getId() );
+      assertEquals( 6, ( long ) cursor.get().getId() );
 
       assertFalse( cursor.next() );
       
@@ -388,7 +388,7 @@
       cursor = idx.forwardCursor( 2L );
 
       assertTrue( cursor.next() );
-      assertEquals( 6, cursor.get().getId() );
+      assertEquals( 6, ( long ) cursor.get().getId() );
       
       assertFalse( cursor.next() );
     }



Mime
View raw message