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

Commit f51e3c5

Browse files
committed
Fix unrelated new test failures
because of removing deprecated features in Neo4j.
1 parent 1f68d8e commit f51e3c5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cypher-shell/src/integration-test/java/org/neo4j/shell/commands/CypherShellPlainIntegrationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void tearDown() throws Exception {
4141
public void periodicCommitWorks() throws CommandException {
4242
shell.execute("USING PERIODIC COMMIT\n" +
4343
"LOAD CSV FROM 'https://neo4j.com/docs/cypher-refcard/3.2/csv/artists.csv' AS line\n" +
44-
"CREATE (:Artist {name: line[1], year: toInt(line[2])});");
44+
"CREATE (:Artist {name: line[1], year: toInteger(line[2])});");
4545
linePrinter.clear();
4646

4747
shell.execute("MATCH (a:Artist) WHERE a.name = 'Europe' RETURN a.name");

cypher-shell/src/integration-test/java/org/neo4j/shell/commands/CypherShellVerboseIntegrationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ public void paramsAndListVariables() throws EvaluationException, CommandExceptio
163163
Object paramValue = shell.getParameterMap().setParameter("bob", String.valueOf(randomLong));
164164
assertEquals(randomLong, paramValue);
165165

166-
shell.execute("RETURN { bob }, $string");
166+
shell.execute("RETURN $bob, $string");
167167

168168
String result = linePrinter.output();
169-
assertThat(result, containsString("| { bob }"));
169+
assertThat(result, containsString("| $bob"));
170170
assertThat(result, containsString("| " + randomLong + " | " + stringInput + " |"));
171171
assertEquals(randomLong, shell.getParameterMap().allParameterValues().get( "bob"));
172172
assertEquals("randomString", shell.getParameterMap().allParameterValues().get( "string"));
@@ -180,10 +180,10 @@ public void paramsAndListVariablesWithSpecialCharacters() throws EvaluationExcep
180180
Object paramValue = shell.getParameterMap().setParameter("`bob`", String.valueOf(randomLong));
181181
assertEquals(randomLong, paramValue);
182182

183-
shell.execute("RETURN { `bob` }");
183+
shell.execute("RETURN $`bob`");
184184

185185
String result = linePrinter.output();
186-
assertThat(result, containsString("| { `bob` }"));
186+
assertThat(result, containsString("| $`bob`"));
187187
assertThat(result, containsString("\n| " + randomLong+ " |\n"));
188188
assertEquals(randomLong, shell.getParameterMap().allParameterValues().get("bob"));
189189
}

0 commit comments

Comments
 (0)