diff --git a/cypher-shell/src/test/java/org/neo4j/shell/cli/CliArgHelperTest.java b/cypher-shell/src/test/java/org/neo4j/shell/cli/CliArgHelperTest.java index f7a8c893..b210694c 100644 --- a/cypher-shell/src/test/java/org/neo4j/shell/cli/CliArgHelperTest.java +++ b/cypher-shell/src/test/java/org/neo4j/shell/cli/CliArgHelperTest.java @@ -120,7 +120,7 @@ public void nonsenseArgsGiveError() throws Exception { assertNull(cliargs); - assertTrue(bout.toString().startsWith("usage: cypher-shell [-h]")); + assertTrue(bout.toString().contains("cypher-shell [-h]")); assertTrue(bout.toString().contains("cypher-shell: error: unrecognized arguments: '-notreally'")); } @@ -134,7 +134,7 @@ public void nonsenseUrlGivesError() throws Exception { assertNull("should have failed", cliargs); assertTrue("expected usage: " + bout.toString(), - bout.toString().startsWith("usage: cypher-shell [-h]")); + bout.toString().contains("cypher-shell [-h]")); assertTrue("expected error: " + bout.toString(), bout.toString().contains("cypher-shell: error: Failed to parse address")); assertTrue("expected error detail: " + bout.toString(),