File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
driver/src/test/java/org/neo4j/driver/v1/integration Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3434import org .neo4j .driver .v1 .exceptions .Neo4jException ;
3535import org .neo4j .driver .v1 .util .TestNeo4j ;
3636
37+ import static org .hamcrest .CoreMatchers .containsString ;
3738import static org .hamcrest .CoreMatchers .equalTo ;
3839import static org .hamcrest .CoreMatchers .notNullValue ;
3940import static org .hamcrest .CoreMatchers .startsWith ;
@@ -251,7 +252,7 @@ public void shouldBeAbleToBeginTxAfterResetFailureIsConsumed() throws Throwable
251252 }
252253 catch ( Neo4jException e )
253254 {
254- MatcherAssert . assertThat ( e .getMessage (), startsWith ( "The transaction has been terminated" ) );
255+ assertThat ( e .getMessage (), containsString ( "The transaction has been terminated" ) );
255256 }
256257 catch ( Throwable e )
257258 {
You can’t perform that action at this time.
0 commit comments