Skip to content

Commit 28dc4cb

Browse files
author
Zhen
committed
Fix red build due to error message type
1 parent 2230d16 commit 28dc4cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/src/test/java/org/neo4j/driver/v1/integration/SessionIT.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.neo4j.driver.v1.exceptions.Neo4jException;
3535
import org.neo4j.driver.v1.util.TestNeo4j;
3636

37+
import static org.hamcrest.CoreMatchers.containsString;
3738
import static org.hamcrest.CoreMatchers.equalTo;
3839
import static org.hamcrest.CoreMatchers.notNullValue;
3940
import 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
{

0 commit comments

Comments
 (0)