Skip to content

Commit 2698997

Browse files
QueryTest: use new API for null conditions test
1 parent b46935f commit 2698997

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • tests/objectbox-java-test/src/test/java/io/objectbox/query

tests/objectbox-java-test/src/test/java/io/objectbox/query/QueryTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2024 ObjectBox Ltd.
2+
* Copyright © 2016 ObjectBox Ltd. <https://objectbox.io/>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -221,10 +221,10 @@ private void assertThrowsEntityDeleted(ThrowingRunnable runnable) {
221221
public void testNullNotNull() {
222222
List<TestEntity> scalars = putTestEntitiesScalars();
223223
List<TestEntity> strings = putTestEntitiesStrings();
224-
try (Query<TestEntity> notNull = box.query().notNull(simpleString).build()) {
224+
try (Query<TestEntity> notNull = box.query(simpleString.notNull()).build()) {
225225
assertEquals(strings.size(), notNull.count());
226226
}
227-
try (Query<TestEntity> isNull = box.query().isNull(simpleString).build()) {
227+
try (Query<TestEntity> isNull = box.query(simpleString.isNull()).build()) {
228228
assertEquals(scalars.size(), isNull.count());
229229
}
230230
}

0 commit comments

Comments
 (0)