We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1950ce commit a5c1c4dCopy full SHA for a5c1c4d
tests/objectbox-java-test/src/test/java/io/objectbox/BoxStoreTest.java
@@ -217,8 +217,15 @@ private Callable<String> createTestCallable(final int[] countHolder) {
217
218
@Test
219
public void validate() {
220
- putTestEntities(10);
+ putTestEntities(100);
221
+
222
+ // No limit.
223
long validated = store.validate(0, true);
224
+ assertEquals(validated, 7);
225
226
+ // With limit.
227
+ validated = store.validate(1, true);
228
+ // 2 because the first page doesn't contain any actual data?
229
assertEquals(validated, 2);
230
}
231
0 commit comments