File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
driver/src/test/java/org/neo4j/driver/v1/integration Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -360,8 +360,7 @@ public void shouldNotAllowNewStatementsAfterAnIncorrectStatement()
360
360
@ Test
361
361
public void shouldFailBoBeginTxWithInvalidBookmark ()
362
362
{
363
- assumeTrue ( "Neo4j " + neo4j .version () + " does not support bookmarks" ,
364
- neo4j .version ().greaterThanOrEqual ( v3_1_0 ) );
363
+ assumeDatabaseSupportsBookmarks ();
365
364
366
365
Session session = neo4j .driver ().session ( "InvalidBookmark" );
367
366
@@ -941,6 +940,8 @@ public void shouldAllowQueriesWhenMarkedForSuccess()
941
940
@ Test
942
941
public void shouldUpdateSessionBookmarkAfterCommit ()
943
942
{
943
+ assumeDatabaseSupportsBookmarks ();
944
+
944
945
String bookmarkBefore = session .lastBookmark ();
945
946
946
947
getBlocking ( session .beginTransactionAsync ()
@@ -1000,4 +1001,10 @@ private void testConsume( String query )
1000
1001
// no records should be available, they should all be consumed
1001
1002
assertNull ( await ( cursor .nextAsync () ) );
1002
1003
}
1004
+
1005
+ private void assumeDatabaseSupportsBookmarks ()
1006
+ {
1007
+ assumeTrue ( "Neo4j " + neo4j .version () + " does not support bookmarks" ,
1008
+ neo4j .version ().greaterThanOrEqual ( v3_1_0 ) );
1009
+ }
1003
1010
}
You can’t perform that action at this time.
0 commit comments