You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2008/05/11 04:20:16 UTC
svn commit: r655224 -
/directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmMasterTableTest.java
Author: akarasulu
Date: Sat May 10 19:20:16 2008
New Revision: 655224
URL: http://svn.apache.org/viewvc?rev=655224&view=rev
Log:
removing dumb tests that passed before but should never have passed
Modified:
directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmMasterTableTest.java
Modified: directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmMasterTableTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmMasterTableTest.java?rev=655224&r1=655223&r2=655224&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmMasterTableTest.java (original)
+++ directory/apacheds/branches/bigbang/jdbm-store/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmMasterTableTest.java Sat May 10 19:20:16 2008
@@ -131,20 +131,11 @@
assertEquals( 0, ( long ) table.getCurrentId() );
assertEquals( 1, ( long ) table.getNextId() );
assertEquals( 1, ( long ) table.getCurrentId() );
- assertNull( table.put( 1L, 5 ) );
- assertEquals( 5, ( int ) table.get( 1L ) );
- assertEquals( 1, table.count() );
+ assertEquals( 0, table.count() );
assertEquals( 1, ( long ) table.getCurrentId() );
assertEquals( 2, ( long ) table.getNextId() );
assertEquals( 2, ( long ) table.getCurrentId() );
- assertNull( table.put( 2L, 6 ) );
- assertEquals( 6, ( int ) table.get( 2L ) );
- assertEquals( 2, table.count() );
-
- assertEquals( 5, ( long ) table.delete( 1L ) );
- assertNull( table.get( 1L ) );
- assertEquals( 1, table.count() );
assertNull( table.getProperty( "foo" ) );
table.setProperty( "foo", "bar" );