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 34
34
import org .neo4j .driver .v1 .exceptions .Neo4jException ;
35
35
import org .neo4j .driver .v1 .util .TestNeo4j ;
36
36
37
+ import static org .hamcrest .CoreMatchers .containsString ;
37
38
import static org .hamcrest .CoreMatchers .equalTo ;
38
39
import static org .hamcrest .CoreMatchers .notNullValue ;
39
40
import static org .hamcrest .CoreMatchers .startsWith ;
@@ -251,7 +252,7 @@ public void shouldBeAbleToBeginTxAfterResetFailureIsConsumed() throws Throwable
251
252
}
252
253
catch ( Neo4jException e )
253
254
{
254
- MatcherAssert . assertThat ( e .getMessage (), startsWith ( "The transaction has been terminated" ) );
255
+ assertThat ( e .getMessage (), containsString ( "The transaction has been terminated" ) );
255
256
}
256
257
catch ( Throwable e )
257
258
{
You can’t perform that action at this time.
0 commit comments