File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tests/objectbox-java-test/src/test/java/io/objectbox/query Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -422,18 +422,21 @@ public void testFindShorts_wrongPropertyType() {
422
422
423
423
@ Test
424
424
public void testCount () {
425
+ Query <TestEntity > query = box .query ().build ();
426
+ PropertyQuery stringQuery = query .property (simpleString );
427
+
428
+ assertEquals (0 , stringQuery .count ());
429
+
425
430
putTestEntity (null , 1000 );
426
431
putTestEntity ("BAR" , 100 );
427
432
putTestEntitiesStrings ();
428
433
putTestEntity ("banana" , 101 );
429
- Query <TestEntity > query = box .query ().build ();
430
- PropertyQuery stringQuery = query .property (simpleString );
434
+
431
435
assertEquals (8 , query .count ());
432
436
assertEquals (7 , stringQuery .count ());
433
437
assertEquals (6 , stringQuery .distinct ().count ());
434
438
}
435
439
436
-
437
440
@ Test
438
441
public void testAggregates () {
439
442
putTestEntitiesScalars ();
You can’t perform that action at this time.
0 commit comments