@@ -103,7 +103,7 @@ public void getVertex() throws ExecutionException, InterruptedException {
103
103
assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class ,
104
104
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
105
105
106
- db .abortStreamTransaction (tx .getId ());
106
+ db .abortStreamTransaction (tx .getId ()). get () ;
107
107
}
108
108
109
109
@@ -128,7 +128,7 @@ public void createVertex() throws ExecutionException, InterruptedException {
128
128
assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class ,
129
129
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (notNullValue ()));
130
130
131
- db .commitStreamTransaction (tx .getId ());
131
+ db .commitStreamTransaction (tx .getId ()). get () ;
132
132
133
133
// assert that the vertex is found after commit
134
134
assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class , null ).get (), is (notNullValue ()));
@@ -164,7 +164,7 @@ public void replaceVertex() throws ExecutionException, InterruptedException {
164
164
assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class ,
165
165
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
166
166
167
- db .commitStreamTransaction (tx .getId ());
167
+ db .commitStreamTransaction (tx .getId ()). get () ;
168
168
169
169
// assert that the vertex has been replaced after commit
170
170
assertThat (vertexCollection1 .getVertex (createdVertex .getKey (), BaseDocument .class , null ).get ()
@@ -200,7 +200,7 @@ public void updateVertex() throws ExecutionException, InterruptedException {
200
200
assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class ,
201
201
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
202
202
203
- db .commitStreamTransaction (tx .getId ());
203
+ db .commitStreamTransaction (tx .getId ()). get () ;
204
204
205
205
// assert that the vertex has been updated after commit
206
206
assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class , null ).get ()
@@ -230,7 +230,7 @@ public void deleteVertex() throws ExecutionException, InterruptedException {
230
230
assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class ,
231
231
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
232
232
233
- db .commitStreamTransaction (tx .getId ());
233
+ db .commitStreamTransaction (tx .getId ()). get () ;
234
234
235
235
// assert that the vertex has been deleted after commit
236
236
assertThat (vertexCollection1 .getVertex (createdDoc .getKey (), BaseDocument .class , null ).get (),
@@ -256,7 +256,7 @@ public void getEdge() throws ExecutionException, InterruptedException {
256
256
assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class ,
257
257
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
258
258
259
- db .abortStreamTransaction (tx .getId ());
259
+ db .abortStreamTransaction (tx .getId ()). get () ;
260
260
}
261
261
262
262
@@ -281,7 +281,7 @@ public void createEdge() throws ExecutionException, InterruptedException {
281
281
assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class ,
282
282
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (notNullValue ()));
283
283
284
- db .commitStreamTransaction (tx .getId ());
284
+ db .commitStreamTransaction (tx .getId ()). get () ;
285
285
286
286
// assert that the edge is found after commit
287
287
assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class , null ).get (), is (notNullValue ()));
@@ -317,7 +317,7 @@ public void replaceEdge() throws ExecutionException, InterruptedException {
317
317
assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class ,
318
318
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
319
319
320
- db .commitStreamTransaction (tx .getId ());
320
+ db .commitStreamTransaction (tx .getId ()). get () ;
321
321
322
322
// assert that the edge has been replaced after commit
323
323
assertThat (edgeCollection .getEdge (createdEdge .getKey (), BaseEdgeDocument .class , null ).get ()
@@ -353,7 +353,7 @@ public void updateEdge() throws ExecutionException, InterruptedException {
353
353
assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class ,
354
354
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get ().getProperties ().get ("test" ), is ("bar" ));
355
355
356
- db .commitStreamTransaction (tx .getId ());
356
+ db .commitStreamTransaction (tx .getId ()). get () ;
357
357
358
358
// assert that the edge has been updated after commit
359
359
assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class , null ).get ()
@@ -383,7 +383,7 @@ public void deleteEdge() throws ExecutionException, InterruptedException {
383
383
assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class ,
384
384
new GraphDocumentReadOptions ().streamTransactionId (tx .getId ())).get (), is (nullValue ()));
385
385
386
- db .commitStreamTransaction (tx .getId ());
386
+ db .commitStreamTransaction (tx .getId ()). get () ;
387
387
388
388
// assert that the edge has been deleted after commit
389
389
assertThat (edgeCollection .getEdge (createdDoc .getKey (), BaseEdgeDocument .class , null ).get (),
0 commit comments