@@ -103,7 +103,7 @@ public void getVertex() throws ExecutionException, InterruptedException {
103103 assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class ,
104104 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
105105
106- db .abortStreamTransaction (tx .getId ());
106+ db .abortStreamTransaction (tx .getId ()). get () ;
107107 }
108108
109109
@@ -128,7 +128,7 @@ public void createVertex() throws ExecutionException, InterruptedException {
128128 assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class ,
129129 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (notNullValue ()));
130130
131- db .commitStreamTransaction (tx .getId ());
131+ db .commitStreamTransaction (tx .getId ()). get () ;
132132
133133 // assert that the vertex is found after commit
134134 assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class , null ).get (), is (notNullValue ()));
@@ -164,7 +164,7 @@ public void replaceVertex() throws ExecutionException, InterruptedException {
164164 assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class ,
165165 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
166166
167- db .commitStreamTransaction (tx .getId ());
167+ db .commitStreamTransaction (tx .getId ()). get () ;
168168
169169 // assert that the vertex has been replaced after commit
170170 assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class , null ).get ()
@@ -200,7 +200,7 @@ public void updateVertex() throws ExecutionException, InterruptedException {
200200 assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class ,
201201 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
202202
203- db .commitStreamTransaction (tx .getId ());
203+ db .commitStreamTransaction (tx .getId ()). get () ;
204204
205205 // assert that the vertex has been updated after commit
206206 assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class , null ).get ()
@@ -230,7 +230,7 @@ public void deleteVertex() throws ExecutionException, InterruptedException {
230230 assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class ,
231231 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
232232
233- db .commitStreamTransaction (tx .getId ());
233+ db .commitStreamTransaction (tx .getId ()). get () ;
234234
235235 // assert that the vertex has been deleted after commit
236236 assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class , null ).get (),
@@ -256,7 +256,7 @@ public void getEdge() throws ExecutionException, InterruptedException {
256256 assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class ,
257257 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
258258
259- db .abortStreamTransaction (tx .getId ());
259+ db .abortStreamTransaction (tx .getId ()). get () ;
260260 }
261261
262262
@@ -281,7 +281,7 @@ public void createEdge() throws ExecutionException, InterruptedException {
281281 assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class ,
282282 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (notNullValue ()));
283283
284- db .commitStreamTransaction (tx .getId ());
284+ db .commitStreamTransaction (tx .getId ()). get () ;
285285
286286 // assert that the edge is found after commit
287287 assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class , null ).get (), is (notNullValue ()));
@@ -317,7 +317,7 @@ public void replaceEdge() throws ExecutionException, InterruptedException {
317317 assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class ,
318318 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
319319
320- db .commitStreamTransaction (tx .getId ());
320+ db .commitStreamTransaction (tx .getId ()). get () ;
321321
322322 // assert that the edge has been replaced after commit
323323 assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class , null ).get ()
@@ -353,7 +353,7 @@ public void updateEdge() throws ExecutionException, InterruptedException {
353353 assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class ,
354354 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
355355
356- db .commitStreamTransaction (tx .getId ());
356+ db .commitStreamTransaction (tx .getId ()). get () ;
357357
358358 // assert that the edge has been updated after commit
359359 assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class , null ).get ()
@@ -383,7 +383,7 @@ public void deleteEdge() throws ExecutionException, InterruptedException {
383383 assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class ,
384384 new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
385385
386- db .commitStreamTransaction (tx .getId ());
386+ db .commitStreamTransaction (tx .getId ()). get () ;
387387
388388 // assert that the edge has been deleted after commit
389389 assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class , null ).get (),
0 commit comments