Author: akarasulu
Date: Thu Mar 27 20:41:33 2008
New Revision: 642079
URL: http://svn.apache.org/viewvc?rev=642079&view=rev
Log:
fix test - broke it - test will now fail and notify to fix workaround if this bug is fixed
Modified:
directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmBrowserBugTest.java
Modified: directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmBrowserBugTest.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/JdbmBrowserBugTest.java?rev=642079&r1=642078&r2=642079&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmBrowserBugTest.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmBrowserBugTest.java
Thu Mar 27 20:41:33 2008
@@ -24,7 +24,6 @@
import org.slf4j.LoggerFactory;
import org.junit.Before;
import org.junit.Test;
-import org.junit.Ignore;
import org.junit.After;
import java.util.Comparator;
@@ -75,7 +74,7 @@
}
dbFile = File.createTempFile( getClass().getSimpleName(), "db", tmpDir );
- RecordManager recman = new BaseRecordManager( dbFile.getAbsolutePath() );
+ recman = new BaseRecordManager( dbFile.getAbsolutePath() );
bt = BTree.createInstance( recman, new IntegerComparator(), new IntegerSerializer(),
new IntegerSerializer() );
LOG.debug( "created new BTree" );
}
@@ -95,7 +94,6 @@
}
- @Ignore( "Shows JDBM Bug" )
@Test
public void testDirectionChange() throws Exception
{
@@ -116,6 +114,7 @@
assertEquals( 25, tuple.getKey() );
assertTrue( browser.getNext( tuple ) );
- assertEquals( 30, tuple.getKey() );
+ assertEquals( "If this works the jdbm bug is gone: will start to return " +
+ "30 instead as expected for correct operation", 25, tuple.getKey() );
}
}
|