@@ -227,7 +227,7 @@ public void getDocumentIfNoneMatchFail() throws InterruptedException, ExecutionE
227227
228228 @ Test
229229 public void getDocumentAsJson () throws InterruptedException , ExecutionException {
230- db .collection (COLLECTION_NAME ).insertDocument ("{\" _key\" :\" docRaw\" ,\" a\" :\" test\" }" , null );
230+ db .collection (COLLECTION_NAME ).insertDocument ("{\" _key\" :\" docRaw\" ,\" a\" :\" test\" }" , null ). get () ;
231231 final CompletableFuture <String > f = db .collection (COLLECTION_NAME ).getDocument ("docRaw" , String .class , null );
232232 assertThat (f , is (notNullValue ()));
233233 f .whenComplete ((readResult , ex ) -> {
@@ -1357,7 +1357,7 @@ public void importDocumentsOverwriteTrue() throws InterruptedException, Executio
13571357
13581358 @ Test
13591359 public void importDocumentsFromToPrefix () throws InterruptedException , ExecutionException {
1360- db .createCollection (COLLECTION_NAME + "_edge" , new CollectionCreateOptions ().type (CollectionType .EDGES ));
1360+ db .createCollection (COLLECTION_NAME + "_edge" , new CollectionCreateOptions ().type (CollectionType .EDGES )). get () ;
13611361 final ArangoCollectionAsync collection = db .collection (COLLECTION_NAME + "_edge" );
13621362 try {
13631363 final Collection <BaseEdgeDocument > values = new ArrayList <>();
@@ -1547,7 +1547,7 @@ public void importDocumentsJsonOverwriteTrue() throws InterruptedException, Exec
15471547
15481548 @ Test
15491549 public void importDocumentsJsonFromToPrefix () throws InterruptedException , ExecutionException {
1550- db .createCollection (COLLECTION_NAME + "_edge" , new CollectionCreateOptions ().type (CollectionType .EDGES ));
1550+ db .createCollection (COLLECTION_NAME + "_edge" , new CollectionCreateOptions ().type (CollectionType .EDGES )). get () ;
15511551 final ArangoCollectionAsync collection = db .collection (COLLECTION_NAME + "_edge" );
15521552 try {
15531553 final String [] keys = { "1" , "2" };
@@ -1586,7 +1586,7 @@ public void deleteDocumentsByKey() throws InterruptedException, ExecutionExcepti
15861586 e .setKey ("2" );
15871587 values .add (e );
15881588 }
1589- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1589+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
15901590 final Collection <String > keys = new ArrayList <>();
15911591 keys .add ("1" );
15921592 keys .add ("2" );
@@ -1617,7 +1617,7 @@ public void deleteDocumentsByDocuments() throws InterruptedException, ExecutionE
16171617 e .setKey ("2" );
16181618 values .add (e );
16191619 }
1620- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1620+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
16211621 final CompletableFuture <MultiDocumentEntity <DocumentDeleteEntity <Object >>> f = db .collection (COLLECTION_NAME )
16221622 .deleteDocuments (values , null , null );
16231623 assertThat (f , is (notNullValue ()));
@@ -1640,7 +1640,7 @@ public void deleteDocumentsByKeyOne() throws InterruptedException, ExecutionExce
16401640 e .setKey ("1" );
16411641 values .add (e );
16421642 }
1643- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1643+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
16441644 final Collection <String > keys = new ArrayList <>();
16451645 keys .add ("1" );
16461646 final CompletableFuture <MultiDocumentEntity <DocumentDeleteEntity <Object >>> f = db .collection (COLLECTION_NAME )
@@ -1665,7 +1665,7 @@ public void deleteDocumentsByDocumentOne() throws InterruptedException, Executio
16651665 e .setKey ("1" );
16661666 values .add (e );
16671667 }
1668- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1668+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
16691669 final CompletableFuture <MultiDocumentEntity <DocumentDeleteEntity <Object >>> f = db .collection (COLLECTION_NAME )
16701670 .deleteDocuments (values , null , null );
16711671 assertThat (f , is (notNullValue ()));
@@ -1683,7 +1683,7 @@ public void deleteDocumentsByDocumentOne() throws InterruptedException, Executio
16831683 @ Test
16841684 public void deleteDocumentsEmpty () throws InterruptedException , ExecutionException {
16851685 final Collection <BaseDocument > values = new ArrayList <>();
1686- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1686+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
16871687 final Collection <String > keys = new ArrayList <>();
16881688 final CompletableFuture <MultiDocumentEntity <DocumentDeleteEntity <Object >>> f = db .collection (COLLECTION_NAME )
16891689 .deleteDocuments (keys , null , null );
@@ -1699,7 +1699,7 @@ public void deleteDocumentsEmpty() throws InterruptedException, ExecutionExcepti
16991699 @ Test
17001700 public void deleteDocumentsByKeyNotExisting () throws InterruptedException , ExecutionException {
17011701 final Collection <BaseDocument > values = new ArrayList <>();
1702- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1702+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
17031703 final Collection <String > keys = new ArrayList <>();
17041704 keys .add ("1" );
17051705 keys .add ("2" );
@@ -1775,7 +1775,7 @@ public void updateDocumentsOne() throws InterruptedException, ExecutionException
17751775 e .setKey ("1" );
17761776 values .add (e );
17771777 }
1778- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1778+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
17791779 final Collection <BaseDocument > updatedValues = new ArrayList <>();
17801780 final BaseDocument first = values .iterator ().next ();
17811781 first .addAttribute ("a" , "test" );
@@ -1809,7 +1809,7 @@ public void updateDocumentsWithoutKey() throws InterruptedException, ExecutionEx
18091809 {
18101810 values .add (new BaseDocument ("1" ));
18111811 }
1812- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1812+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
18131813 final Collection <BaseDocument > updatedValues = new ArrayList <>();
18141814 for (final BaseDocument i : values ) {
18151815 i .addAttribute ("a" , "test" );
@@ -1833,7 +1833,7 @@ public void replaceDocuments() throws InterruptedException, ExecutionException {
18331833 values .add (new BaseDocument ("1" ));
18341834 values .add (new BaseDocument ("2" ));
18351835 }
1836- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1836+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
18371837 final Collection <BaseDocument > updatedValues = new ArrayList <>();
18381838 for (final BaseDocument i : values ) {
18391839 i .addAttribute ("a" , "test" );
@@ -1857,7 +1857,7 @@ public void replaceDocumentsOne() throws InterruptedException, ExecutionExceptio
18571857 e .setKey ("1" );
18581858 values .add (e );
18591859 }
1860- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1860+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
18611861 final Collection <BaseDocument > updatedValues = new ArrayList <>();
18621862 final BaseDocument first = values .iterator ().next ();
18631863 first .addAttribute ("a" , "test" );
@@ -1891,7 +1891,7 @@ public void replaceDocumentsWithoutKey() throws InterruptedException, ExecutionE
18911891 {
18921892 values .add (new BaseDocument ("1" ));
18931893 }
1894- db .collection (COLLECTION_NAME ).insertDocuments (values , null );
1894+ db .collection (COLLECTION_NAME ).insertDocuments (values , null ). get () ;
18951895 final Collection <BaseDocument > updatedValues = new ArrayList <>();
18961896 for (final BaseDocument i : values ) {
18971897 i .addAttribute ("a" , "test" );
@@ -1985,7 +1985,7 @@ public void rename() throws InterruptedException, ExecutionException {
19851985 } catch (final Exception e ) {
19861986 }
19871987 } finally {
1988- db .collection (COLLECTION_NAME + "1" ).rename (COLLECTION_NAME );
1988+ db .collection (COLLECTION_NAME + "1" ).rename (COLLECTION_NAME ). get () ;
19891989 }
19901990 }
19911991
0 commit comments