@@ -280,19 +280,19 @@ void insertDocumentOverwriteModeUpdateMergeObjectsFalse(ArangoCollectionAsync co
280
280
@ ParameterizedTest (name = "{index}" )
281
281
@ MethodSource ("asyncCols" )
282
282
void insertDocumentOverwriteModeUpdateKeepNullTrue (ArangoCollectionAsync collection ) throws ExecutionException , InterruptedException {
283
- assumeTrue (isAtLeastVersion (3 , 7 ));
283
+ assumeTrue (isAtLeastVersion (3 , 7 ));
284
284
285
- final BaseDocument doc = new BaseDocument (UUID .randomUUID ().toString ());
286
- doc .addAttribute ("foo" , "bar" );
287
- collection .insertDocument (doc ).get ();
285
+ final BaseDocument doc = new BaseDocument (UUID .randomUUID ().toString ());
286
+ doc .addAttribute ("foo" , "bar" );
287
+ collection .insertDocument (doc ).get ();
288
288
289
- doc .updateAttribute ("foo" , null );
290
- final BaseDocument updated = collection .insertDocument (doc , new DocumentCreateOptions ()
291
- .overwriteMode (OverwriteMode .update )
292
- .keepNull (true )
293
- .returnNew (true )).get ().getNew ();
289
+ doc .updateAttribute ("foo" , null );
290
+ final BaseDocument updated = collection .insertDocument (doc , new DocumentCreateOptions ()
291
+ .overwriteMode (OverwriteMode .update )
292
+ .keepNull (true )
293
+ .returnNew (true )).get ().getNew ();
294
294
295
- assertThat (updated .getProperties ()).containsEntry ("foo" , null );
295
+ assertThat (updated .getProperties ()).containsEntry ("foo" , null );
296
296
}
297
297
298
298
@ ParameterizedTest (name = "{index}" )
@@ -1593,7 +1593,7 @@ void createZKDIndex(ArangoCollectionAsync collection) throws ExecutionException,
1593
1593
@ MethodSource ("asyncCols" )
1594
1594
void createZKDIndexWithOptions (ArangoCollectionAsync collection ) throws ExecutionException , InterruptedException {
1595
1595
assumeTrue (isAtLeastVersion (3 , 9 ));
1596
- collection .truncate ();
1596
+ collection .truncate (). get () ;
1597
1597
1598
1598
String name = "ZKDIndex-" + rnd ();
1599
1599
final ZKDIndexOptions options =
@@ -1614,7 +1614,7 @@ void createZKDIndexWithOptions(ArangoCollectionAsync collection) throws Executio
1614
1614
assertThat (indexResult .getType ()).isEqualTo (IndexType .zkd );
1615
1615
assertThat (indexResult .getUnique ()).isFalse ();
1616
1616
assertThat (indexResult .getName ()).isEqualTo (name );
1617
- collection .deleteIndex (indexResult .getId ());
1617
+ collection .deleteIndex (indexResult .getId ()). get () ;
1618
1618
}
1619
1619
1620
1620
@ ParameterizedTest (name = "{index}" )
@@ -2845,7 +2845,7 @@ void replaceDocumentsRawData(ArangoCollectionAsync collection) throws ExecutionE
2845
2845
@ MethodSource ("asyncCols" )
2846
2846
void replaceDocumentsRawDataReturnNew (ArangoCollectionAsync collection ) throws ExecutionException , InterruptedException {
2847
2847
final RawData values = RawJson .of ("[{\" _key\" :\" 1\" }, {\" _key\" :\" 2\" }]" );
2848
- collection .insertDocuments (values );
2848
+ collection .insertDocuments (values ). get () ;
2849
2849
2850
2850
final RawData updatedValues = RawJson .of ("[{\" _key\" :\" 1\" , \" foo\" :\" bar\" }, {\" _key\" :\" 2\" , " +
2851
2851
"\" foo\" :\" bar\" }]" );
0 commit comments