call next() on cursor to avoid infinite loop
authorKiran Ayyagari <kayyagari@apache.org>
Sun, 5 Apr 2015 15:40:14 +0000 (15:40 +0000)
committerKiran Ayyagari <kayyagari@apache.org>
Sun, 5 Apr 2015 15:40:14 +0000 (15:40 +0000)
mavibot/src/test/java/org/apache/directory/mavibot/btree/SpaceReclaimerTest.java

index aa22048..5cab1c8 100644 (file)
@@ -102,6 +102,8 @@ public class SpaceReclaimerTest
         TupleCursor<Integer, String> cursor = uidTree.browse();\r
         while ( cursor.hasNext() )\r
         {\r
+            Tuple<Integer, String> t = cursor.next();\r
+            assertEquals( t.key, Integer.valueOf( count ) );\r
             count++;\r
         }\r
         \r