File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 5858import com .arangodb .entity .CollectionEntity ;
5959import com .arangodb .entity .CollectionPropertiesEntity ;
6060import com .arangodb .entity .CollectionType ;
61+ import com .arangodb .entity .CursorEntity .Warning ;
6162import com .arangodb .entity .DatabaseEntity ;
6263import com .arangodb .entity .GraphEntity ;
6364import com .arangodb .entity .IndexEntity ;
@@ -674,7 +675,10 @@ public void queryWithMaxWarningCount() {
674675assertThat (cursorWithWarnings .getWarnings ().size (), is (1 ));
675676final ArangoCursor <String > cursorWithLimitedWarnings = db .query ("RETURN 1 / 0" , null ,
676677new AqlQueryOptions ().maxWarningCount (0L ), String .class );
677- assertThat (cursorWithLimitedWarnings .getWarnings ().size (), is (0 ));
678+ final Collection <Warning > warnings = cursorWithLimitedWarnings .getWarnings ();
679+ if (warnings != null ) {
680+ assertThat (warnings .size (), is (0 ));
681+ }
678682}
679683
680684@ Test
You can’t perform that action at this time.
0 commit comments