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() {
275275
276276    @ Test 
277277    void  shouldFailBoBeginTxWithInvalidBookmark () {
278-         AsyncSession  session  = neo4j .driver ()
278+         var  session  = neo4j .driver ()
279279                .session (
280280                        AsyncSession .class ,
281281                        builder ().withBookmarks (parse ("InvalidBookmark" )).build ());
282282
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" ));
285286    }
286287
287288    @ Test 
Original file line number Diff line number Diff line change @@ -270,11 +270,12 @@ void shouldNotAllowNewQueriesAfterAnIncorrectQuery() {
270270
271271    @ Test 
272272    void  shouldFailBoBeginTxWithInvalidBookmark () {
273-         RxSession  session  = neo4j .driver ()
273+         var  session  = neo4j .driver ()
274274                .rxSession (builder ().withBookmarks (parse ("InvalidBookmark" )).build ());
275275
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" ));
278279    }
279280
280281    @ Test 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments