Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed broken test

  • Loading branch information...
commit 4df65084faed5afd38d43f6b663d0a9005febf46 1 parent a10322c
Nigel Small authored
View
8 geoff-plugin/src/test/java/org/neo4j/server/plugin/geoff/GeoffPluginFunctionalTest.java
@@ -29,8 +29,8 @@
import static org.junit.Assert.assertTrue;
public class GeoffPluginFunctionalTest extends AbstractRestFunctionalTestBase {
- private static final String STRING_ENDPOINT = "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/load_from_string";
- private static final String LIST_ENDPOINT = "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/load_from_list";
+
+ private static final String GEOFF_INSERT = "http://localhost:7474/db/data/ext/GeoffPlugin/graphdb/insert";
@Test
public void canLoadGeoffRuleList() {
@@ -41,11 +41,11 @@ public void canLoadGeoffRuleList() {
"\"(doc)-[:ENEMY_OF]->(dal) {\\\"since\\\":\\\"forever\\\"}\"," +
"\"(doc)<=|People| {\\\"name\\\": \\\"The Doctor\\\"}\"" +
"]";
- String payload = "{\"rules\":" + geoff + "}";
+ String payload = "{\"subgraph\":" + geoff + "}";
RESTDocsGenerator rdgen = gen.get();
rdgen.expectedStatus(ClientResponse.Status.OK);
rdgen.payload(payload);
- RESTDocsGenerator.ResponseEntity re = rdgen.post(LIST_ENDPOINT);
+ RESTDocsGenerator.ResponseEntity re = rdgen.post(GEOFF_INSERT);
String response = re.entity();
assertTrue(db.index().existsForNodes("People"));
assertTrue(db.index().forNodes("People").get("name", "The Doctor").hasNext());
Please sign in to comment.
Something went wrong with that request. Please try again.