We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c85fb commit f620644Copy full SHA for f620644
driver/src/test/java/org/neo4j/driver/v1/integration/ErrorIT.java
@@ -33,6 +33,7 @@
33
import org.neo4j.driver.v1.util.TestNeo4jSession;
34
35
import static org.hamcrest.CoreMatchers.equalTo;
36
+import static org.hamcrest.CoreMatchers.startsWith;
37
import static org.hamcrest.MatcherAssert.assertThat;
38
39
public class ErrorIT
@@ -48,7 +49,7 @@ public void shouldThrowHelpfulSyntaxError() throws Throwable
48
49
{
50
// Expect
51
exception.expect( ClientException.class );
- exception.expectMessage( "Invalid input 'i'" );
52
+ exception.expectMessage( startsWith( "Invalid input") );
53
54
// When
55
StatementResult result = session.run( "invalid statement" );
0 commit comments