Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 31a7bef

Browse files
Merge pull request #125 from sarmbruster/locale-independent-tests
fix tests: remove locale specific parts
2 parents ca48b68 + a0cc022 commit 31a7bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypher-shell/src/test/java/org/neo4j/shell/cli/CliArgHelperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void nonsenseArgsGiveError() throws Exception {
120120

121121
assertNull(cliargs);
122122

123-
assertTrue(bout.toString().startsWith("usage: cypher-shell [-h]"));
123+
assertTrue(bout.toString().contains("cypher-shell [-h]"));
124124
assertTrue(bout.toString().contains("cypher-shell: error: unrecognized arguments: '-notreally'"));
125125
}
126126

@@ -134,7 +134,7 @@ public void nonsenseUrlGivesError() throws Exception {
134134
assertNull("should have failed", cliargs);
135135

136136
assertTrue("expected usage: " + bout.toString(),
137-
bout.toString().startsWith("usage: cypher-shell [-h]"));
137+
bout.toString().contains("cypher-shell [-h]"));
138138
assertTrue("expected error: " + bout.toString(),
139139
bout.toString().contains("cypher-shell: error: Failed to parse address"));
140140
assertTrue("expected error detail: " + bout.toString(),

0 commit comments

Comments
 (0)