directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1180636 - /directory/apacheds/trunk/jdbm/src/test/java/jdbm/btree/TestSnapshotBTree.java
Date Sun, 09 Oct 2011 16:05:12 GMT
Author: seelmann
Date: Sun Oct  9 16:05:11 2011
New Revision: 1180636

URL: http://svn.apache.org/viewvc?rev=1180636&view=rev
Log:
Use JUnit assert instead of Java assert. When running the tests from within Eclipse Java assertions
are disabled by default and thus browser.getNext() got never executed.

Modified:
    directory/apacheds/trunk/jdbm/src/test/java/jdbm/btree/TestSnapshotBTree.java

Modified: directory/apacheds/trunk/jdbm/src/test/java/jdbm/btree/TestSnapshotBTree.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/test/java/jdbm/btree/TestSnapshotBTree.java?rev=1180636&r1=1180635&r2=1180636&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/test/java/jdbm/btree/TestSnapshotBTree.java (original)
+++ directory/apacheds/trunk/jdbm/src/test/java/jdbm/btree/TestSnapshotBTree.java Sun Oct
 9 16:05:11 2011
@@ -340,7 +340,7 @@ public class TestSnapshotBTree
             TupleBrowser<Integer, IntWrapper> browser = btree.browse();
             Tuple<Integer, IntWrapper> tuple = new Tuple();
            
-            assert( browser.getNext( tuple ) );
+            assertTrue( browser.getNext( tuple ) );
             int max = tuple.getValue().value;
             count++;
             System.out.println( " TestLongBrowsing read thread min key is"  + tuple.getKey()
+ "max value is" + max );



Mime
View raw message