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 2929import io .objectbox .DebugFlags ;
3030import io .objectbox .TestEntity ;
3131import io .objectbox .TestEntityCursor ;
32+ import io .objectbox .exception .DbException ;
3233import io .objectbox .query .QueryBuilder .StringOrder ;
3334
3435import static io .objectbox .TestEntity_ .*;
@@ -159,7 +160,7 @@ public void testFindLong() {
159160 assertEquals (1005 , (long ) query .property (simpleLong ).distinct ().findUniqueLong ());
160161 }
161162
162- @ Test ()
163+ @ Test (expected = DbException . class )
163164 public void testFindLong_uniqueFails () {
164165 putTestEntity (null , 1 );
165166 putTestEntity (null , 1 );
@@ -177,7 +178,7 @@ public void testFindInt() {
177178 assertEquals (5 , (long ) query .property (simpleInt ).distinct ().findUniqueInt ());
178179 }
179180
180- @ Test ()
181+ @ Test (expected = DbException . class )
181182 public void testFindInt_uniqueFails () {
182183 putTestEntity (null , 1 );
183184 putTestEntity (null , 1 );
You can’t perform that action at this time.
0 commit comments