File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
driver/src/test/java/org/neo4j/driver/integration Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -275,13 +275,14 @@ void shouldNotAllowNewQueriesAfterAnIncorrectQuery() {
275
275
276
276
@ Test
277
277
void shouldFailBoBeginTxWithInvalidBookmark () {
278
- AsyncSession session = neo4j .driver ()
278
+ var session = neo4j .driver ()
279
279
.session (
280
280
AsyncSession .class ,
281
281
builder ().withBookmarks (parse ("InvalidBookmark" )).build ());
282
282
283
- ClientException e = assertThrows (ClientException .class , () -> await (session .beginTransactionAsync ()));
284
- assertThat (e .getMessage (), containsString ("InvalidBookmark" ));
283
+ var e = assertThrows (ClientException .class , () -> await (session .beginTransactionAsync ()));
284
+ assertTrue (e .getMessage ().contains ("InvalidBookmark" )
285
+ || e .getMessage ().contains ("Parsing of supplied bookmarks failed" ));
285
286
}
286
287
287
288
@ Test
Original file line number Diff line number Diff line change @@ -270,11 +270,12 @@ void shouldNotAllowNewQueriesAfterAnIncorrectQuery() {
270
270
271
271
@ Test
272
272
void shouldFailBoBeginTxWithInvalidBookmark () {
273
- RxSession session = neo4j .driver ()
273
+ var session = neo4j .driver ()
274
274
.rxSession (builder ().withBookmarks (parse ("InvalidBookmark" )).build ());
275
275
276
- ClientException e = assertThrows (ClientException .class , () -> await (session .beginTransaction ()));
277
- assertThat (e .getMessage (), containsString ("InvalidBookmark" ));
276
+ var e = assertThrows (ClientException .class , () -> await (session .beginTransaction ()));
277
+ assertTrue (e .getMessage ().contains ("InvalidBookmark" )
278
+ || e .getMessage ().contains ("Parsing of supplied bookmarks failed" ));
278
279
}
279
280
280
281
@ Test
You can’t perform that action at this time.
0 commit comments