We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2230d16 commit 28dc4cbCopy full SHA for 28dc4cb
driver/src/test/java/org/neo4j/driver/v1/integration/SessionIT.java
@@ -34,6 +34,7 @@
34
import org.neo4j.driver.v1.exceptions.Neo4jException;
35
import org.neo4j.driver.v1.util.TestNeo4j;
36
37
+import static org.hamcrest.CoreMatchers.containsString;
38
import static org.hamcrest.CoreMatchers.equalTo;
39
import static org.hamcrest.CoreMatchers.notNullValue;
40
import static org.hamcrest.CoreMatchers.startsWith;
@@ -251,7 +252,7 @@ public void shouldBeAbleToBeginTxAfterResetFailureIsConsumed() throws Throwable
251
252
}
253
catch ( Neo4jException e )
254
{
- MatcherAssert.assertThat( e.getMessage(), startsWith( "The transaction has been terminated" ) );
255
+ assertThat( e.getMessage(), containsString( "The transaction has been terminated" ) );
256
257
catch ( Throwable e )
258
0 commit comments