Beispiel #1
0
        private static HTTP.Response ExecuteUpdateStatement(HTTP.Response tx, long value, HTTP.Builder http)
        {
            string updateQuery = "MATCH (n:" + _label + ") SET n." + PROPERTY + "=" + value;

            HTTP.RawPayload json = quotedJson("{'statements': [{'statement':'" + updateQuery + "'}]}");
            return(http.Post(tx.Location(), json));
        }
Beispiel #2
0
 private static HTTP.Response StartTx(HTTP.Builder http)
 {
     HTTP.Response tx = http.Post("db/data/transaction");
     assertThat(tx.Status(), equalTo(201));
     assertThat(tx, containsNoErrors());
     return(tx);
 }
Beispiel #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private static void commit(org.neo4j.test.server.HTTP.Response tx, org.neo4j.test.server.HTTP.Builder http) throws org.neo4j.server.rest.domain.JsonParseException
        private static void Commit(HTTP.Response tx, HTTP.Builder http)
        {
            http.Post(tx.StringFromContent("commit"));
        }