File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
tests/objectbox-java-test/src/main/java/io/objectbox/query Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 29
29
import io .objectbox .DebugFlags ;
30
30
import io .objectbox .TestEntity ;
31
31
import io .objectbox .TestEntityCursor ;
32
+ import io .objectbox .exception .DbException ;
32
33
import io .objectbox .query .QueryBuilder .StringOrder ;
33
34
34
35
import static io .objectbox .TestEntity_ .*;
@@ -159,7 +160,7 @@ public void testFindLong() {
159
160
assertEquals (1005 , (long ) query .property (simpleLong ).distinct ().findUniqueLong ());
160
161
}
161
162
162
- @ Test ()
163
+ @ Test (expected = DbException . class )
163
164
public void testFindLong_uniqueFails () {
164
165
putTestEntity (null , 1 );
165
166
putTestEntity (null , 1 );
@@ -177,7 +178,7 @@ public void testFindInt() {
177
178
assertEquals (5 , (long ) query .property (simpleInt ).distinct ().findUniqueInt ());
178
179
}
179
180
180
- @ Test ()
181
+ @ Test (expected = DbException . class )
181
182
public void testFindInt_uniqueFails () {
182
183
putTestEntity (null , 1 );
183
184
putTestEntity (null , 1 );
You can’t perform that action at this time.
0 commit comments