diff --git a/demo/JavaClientDemo/movie b/demo/JavaClientDemo/movie
deleted file mode 120000
index 563e4590c6..0000000000
--- a/demo/JavaClientDemo/movie
+++ /dev/null
@@ -1 +0,0 @@
-../movie
\ No newline at end of file
diff --git a/demo/JavaClientDemo/pom.xml b/demo/JavaClientDemo/pom.xml
deleted file mode 100644
index 7101ac0668..0000000000
--- a/demo/JavaClientDemo/pom.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
-
- 4.0.0
-
- 1.8
- 1.8
-
-
-
- org.sonatype.oss
- oss-parent
- 7
-
-
- com.antgroup.tugraph
- tugraph-rpc-client-demo
- 3.1.0
-
-
-
-
- Apache 2.0
- http://www.apache.org/licenses/LICENSE-2.0.txt
- repo
-
-
-
-
-
- release
-
-
-
- org.apache.maven.plugins
- maven-gpg-plugin
- 1.6
-
-
- sign-artifacts
- verify
-
- sign
-
-
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 3.1.0
-
-
- attach-javadoc
- compile
-
- jar
-
-
-
-
- none
- UTF-8
- UTF-8
- UTF-8
-
-
-
-
-
-
- oss
- https://oss.sonatype.org/content/repositories/snapshots/
-
-
- oss
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
-
-
-
- com.antgroup.tugraph.demo.TuGraphRpcClientDemo
-
-
-
-
-
- org.apache.maven.plugins
- maven-assembly-plugin
- 3.3.0
-
-
- jar-with-dependencies
-
-
-
- com.antgroup.tugraph.demo.TuGraphRpcClientDemo
- jav
-
-
-
-
- assemble-all
- package
-
- single
-
-
-
-
-
-
-
-
-
-
- com.antgroup.tugraph
- tugraph-java-rpc-client
- 0.0.1
-
-
- com.alibaba
- fastjson
- 1.2.83
-
-
- org.apache.logging.log4j
- log4j-slf4j-impl
- 2.13.2
- test
-
-
- org.apache.logging.log4j
- log4j-core
- 2.17.1
- test
-
-
- junit
- junit
- 4.13.1
- test
-
-
- org.projectlombok
- lombok
- 1.18.16
- compile
-
-
- org.junit.jupiter
- junit-jupiter
- RELEASE
- compile
-
-
-
diff --git a/demo/JavaClientDemo/src/main/java/com/antgroup/tugraph/demo/TuGraphRpcClientDemo.java b/demo/JavaClientDemo/src/main/java/com/antgroup/tugraph/demo/TuGraphRpcClientDemo.java
deleted file mode 100644
index 39a01d68ad..0000000000
--- a/demo/JavaClientDemo/src/main/java/com/antgroup/tugraph/demo/TuGraphRpcClientDemo.java
+++ /dev/null
@@ -1,285 +0,0 @@
-package com.antgroup.tugraph.demo;
-import java.io.IOException;
-import com.antgroup.tugraph.TuGraphRpcClient;
-import org.junit.jupiter.api.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class TuGraphRpcClientDemo {
- static Logger log = LoggerFactory.getLogger(TuGraphRpcClientDemo.class);
- TuGraphRpcClient client = new TuGraphRpcClient("list://11.166.81.245:19090","admin", "73@TuGraph");
- void deleteAndCreate(String graphName) {
- try {
- // delete graph
- client.callCypher(String.format("CALL dbms.graph.deleteGraph('%s')", graphName), "default", 1000);
- } catch (Exception e) {
- log.info(e.toString());
- }
- // create graph
- client.callCypher(String.format("CALL dbms.graph.createGraph('%s', 'this is a demo graph', 20)", graphName), "default", 1000);
- }
-
- @Test
- // import data by configuration file
- void demo1() throws IOException {
- String graphName = "demo1";
- deleteAndCreate(graphName);
- // create vertex and edge labels described in 'schema' section of `movie/import_for_java_demo.json`
- client.importSchemaFromFile("movie/import_for_java_demo.json", graphName, 1000);
-
- // get all vertex labels
- String res = client.callCypher("CALL db.vertexLabels()", graphName, 1000);
- log.info("CALL db.vertexLabels() : " + res);
- // get all edge labels
- res = client.callCypher("CALL db.edgeLabels()", graphName, 1000);
- log.info("CALL db.edgeLabels() : " + res);
-
- // import vertex and edge data described in 'files' section of `movie/import_for_java_demo.json`
- client.importDataFromFile("movie/import_for_java_demo.json",",", true, 4, 0, graphName, 10000);
-
- // count all vertexs
- String vertexCount = client.callCypher("MATCH (n) RETURN count(n)", graphName, 1000);
- log.info(vertexCount);
- // count all edges
- String edgeCount = client.callCypher("MATCH (n)-[r]->(m) RETURN count(r)", graphName, 1000);
- log.info(edgeCount);
- }
-
- //
- @Test
- // import data by data block
- void demo2() throws IOException {
- String graphName = "demo2";
- deleteAndCreate(graphName);
- // create vertex and edge labels described in 'schema' section of `movie/import_for_java_demo.json`
- client.importSchemaFromFile("movie/import_for_java_demo.json", graphName, 1000);
-/*
-{
- "files": [
- {
- "format": "CSV",
- "label": "person",
- "columns": ["id", "name", "born", "poster_image"]
- }
- ]
-}
-*/
- String personDesc = "{\n" +
- " \"files\": [\n" +
- " {\n" +
- " \"format\": \"CSV\",\n" +
- " \"label\": \"person\",\n" +
- " \"columns\": [\"id\", \"name\", \"born\", \"poster_image\"]\n" +
- " }\n" +
- " ]\n" +
- " }";
-
-/*
-2,Laurence Fishburne,1961,https://image.tmdb.org/t/p/w185/mh0lZ1XsT84FayMNiT6Erh91mVu.jpg
-3,Carrie-Anne Moss,1967,https://image.tmdb.org/t/p/w185/8iATAc5z5XOKFFARLsvaawa8MTY.jpg
-4,Hugo Weaving,1960,https://image.tmdb.org/t/p/w185/3DKJSeTucd7krnxXkwcir6PgT88.jpg
-5,Gloria Foster,1933,https://image.tmdb.org/t/p/w185/ahwiARgfOYctk6sOLBBk5w7cfH5.jpg
-6,Joe Pantoliano,1951,https://image.tmdb.org/t/p/w185/zBvDX2HWepvW9im6ikgoyOL2Xj0.jpg
-7,Marcus Chong,1967,https://image.tmdb.org/t/p/w185/zYfXjMszFajTb93phn2Fi6LwEGN.jpg
-8,Matt Doran,1976,https://image.tmdb.org/t/p/w185/gLpWm3azLiXgDPRWo23AnG5WM7O.jpg
-9,Anthony Ray Parker,1958,https://image.tmdb.org/t/p/w185/iMHr0onfM8v4uVdPVnXxXx2xwwN.jpg
-10,Keanu Reeves,1964,https://image.tmdb.org/t/p/w185/id1qIb7cZs2eQno90KsKwG8VLGN.jpg
-*/
-
- String personData = "2,Laurence Fishburne,1961,https://image.tmdb.org/t/p/w185/mh0lZ1XsT84FayMNiT6Erh91mVu.jpg\n" +
- "3,Carrie-Anne Moss,1967,https://image.tmdb.org/t/p/w185/8iATAc5z5XOKFFARLsvaawa8MTY.jpg\n" +
- "4,Hugo Weaving,1960,https://image.tmdb.org/t/p/w185/3DKJSeTucd7krnxXkwcir6PgT88.jpg\n" +
- "5,Gloria Foster,1933,https://image.tmdb.org/t/p/w185/ahwiARgfOYctk6sOLBBk5w7cfH5.jpg\n" +
- "6,Joe Pantoliano,1951,https://image.tmdb.org/t/p/w185/zBvDX2HWepvW9im6ikgoyOL2Xj0.jpg\n" +
- "7,Marcus Chong,1967,https://image.tmdb.org/t/p/w185/zYfXjMszFajTb93phn2Fi6LwEGN.jpg\n" +
- "8,Matt Doran,1976,https://image.tmdb.org/t/p/w185/gLpWm3azLiXgDPRWo23AnG5WM7O.jpg\n" +
- "9,Anthony Ray Parker,1958,https://image.tmdb.org/t/p/w185/iMHr0onfM8v4uVdPVnXxXx2xwwN.jpg\n" +
- "10,Keanu Reeves,1964,https://image.tmdb.org/t/p/w185/id1qIb7cZs2eQno90KsKwG8VLGN.jpg";
-
- // import vertex data of 'person' label
- // personData : data block in csv format
- // personDesc : describe the detailed format of the data block
- client.importDataFromContent(personDesc, personData, ",", true, 4, graphName, 10000);
-
-/*
-{
- "files": [
- {
- "format": "CSV",
- "label": "movie",
- "columns": ["id","title","tagline","summary","poster_image","duration","rated"]
- }
- ]
-}
-*/
- String moiveDesc = "{\n" +
- " \"files\": [\n" +
- " {\n" +
- " \"format\": \"CSV\",\n" +
- " \"label\": \"movie\",\n" +
- " \"columns\": [\"id\",\"title\",\"tagline\",\"summary\",\"poster_image\",\"duration\",\"rated\"]\n" +
- " }\n" +
- " ]\n" +
- "}";
-
-/*
-82,Pulp Fiction,Just because you are a character doesn't mean you have character.,placeholder text,http://image.tmdb.org/t/p/w185/dM2w364MScsjFf8pfMbaWUcWrR.jpg,154,R
-130,Cloud Atlas,Everything is Connected,placeholder text,http://image.tmdb.org/t/p/w185/k9gWDjfXM80iXQLuMvPlZgSFJgR.jpg,172,R
-457,The Shawshank Redemption,Fear can hold you prisoner. Hope can set you free.,placeholder text,http://image.tmdb.org/t/p/w185/9O7gLzmreU0nGkIB6K3BsJbzvNv.jpg,142,R
-471,The Godfather,An offer you can't refuse.,placeholder text,http://image.tmdb.org/t/p/w185/d4KNaTrltq6bpkFS01pYtyXa09m.jpg,175,R
-496,The Godfather: Part II,I don't feel I have to wipe everybody out\ Tom. Just my enemies.,placeholder text,http://image.tmdb.org/t/p/w185/tHbMIIF51rguMNSastqoQwR0sBs.jpg,200,R
-517,The Good\ the Bad and the Ugly,For three men the Civil War wasn't hell. It was practice.,placeholder text,http://image.tmdb.org/t/p/w185/8PD1dgf0kQHtRawoSxp1jFemI1q.jpg,161,R
-532,The Dark Knight,Why So Serious?,placeholder text,http://image.tmdb.org/t/p/w185/1hRoyzDtpgMU7Dz4JF22RANzQO7.jpg,152,PG-13
-564,The Dark Knight Rises,The Legend Ends,placeholder text,http://image.tmdb.org/t/p/w185/dEYnvnUfXrqvqeRSqvIEtmzhoA8.jpg,165,PG-13
-*/
- String moiveData = "82,Pulp Fiction,Just because you are a character doesn't mean you have character.,placeholder text,http://image.tmdb.org/t/p/w185/dM2w364MScsjFf8pfMbaWUcWrR.jpg,154,R\n" +
- "130,Cloud Atlas,Everything is Connected,placeholder text,http://image.tmdb.org/t/p/w185/k9gWDjfXM80iXQLuMvPlZgSFJgR.jpg,172,R\n" +
- "457,The Shawshank Redemption,Fear can hold you prisoner. Hope can set you free.,placeholder text,http://image.tmdb.org/t/p/w185/9O7gLzmreU0nGkIB6K3BsJbzvNv.jpg,142,R\n" +
- "471,The Godfather,An offer you can't refuse.,placeholder text,http://image.tmdb.org/t/p/w185/d4KNaTrltq6bpkFS01pYtyXa09m.jpg,175,R\n" +
- "496,The Godfather: Part II,I don't feel I have to wipe everybody out\\ Tom. Just my enemies.,placeholder text,http://image.tmdb.org/t/p/w185/tHbMIIF51rguMNSastqoQwR0sBs.jpg,200,R\n" +
- "517,The Good\\ the Bad and the Ugly,For three men the Civil War wasn't hell. It was practice.,placeholder text,http://image.tmdb.org/t/p/w185/8PD1dgf0kQHtRawoSxp1jFemI1q.jpg,161,R\n" +
- "532,The Dark Knight,Why So Serious?,placeholder text,http://image.tmdb.org/t/p/w185/1hRoyzDtpgMU7Dz4JF22RANzQO7.jpg,152,PG-13\n" +
- "564,The Dark Knight Rises,The Legend Ends,placeholder text,http://image.tmdb.org/t/p/w185/dEYnvnUfXrqvqeRSqvIEtmzhoA8.jpg,165,PG-13";
-
- // import vertex data of 'moive' label
- // moiveData : data block in csv format
- // moiveDesc : describe the detailed format of the data block
- client.importDataFromContent(moiveDesc, moiveData, ",", true, 4, graphName, 10000);
-
-
-
-/*
-{
- "files": [
- {
- "format":"CSV",
- "label":"acted_in",
- "SRC_ID":"person",
- "DST_ID":"movie",
- "columns": ["SRC_ID", "DST_ID", "role"]
- }
- ]
-}
-*/
- String actedInDesc = "{\n" +
- " \"files\": [\n" +
- " {\n" +
- " \"format\":\"CSV\",\n" +
- " \"label\":\"acted_in\",\n" +
- " \"SRC_ID\":\"person\",\n" +
- " \"DST_ID\":\"movie\",\n" +
- " \"columns\": [\"SRC_ID\", \"DST_ID\", \"role\"]\n" +
- " }\n" +
- " ]\n" +
- "}";
-
-/*
-2,82,Morpheus
-2,130,Morpheus
-2,457,Morpheus
-3,496,Trinity
-3,517,Trinity
-3,564,Trinity
-*/
-
- String actedInData = "2,82,Morpheus\n" +
- "2,130,Morpheus\n" +
- "2,457,Morpheus\n" +
- "3,496,Trinity\n" +
- "3,517,Trinity\n" +
- "3,564,Trinity";
-
- // import edge data of 'acted_in' label
- // actedInData : data block in csv format
- // actedInDesc : describe the detailed format of the data block
- client.importDataFromContent(actedInDesc, actedInData, ",", true, 4, graphName, 10000);
-
- // get all vertex labels
- String res = client.callCypher("CALL db.vertexLabels()", graphName, 1000);
- log.info("CALL db.vertexLabels() : " + res);
- // get all edge labels
- res = client.callCypher("CALL db.edgeLabels()", graphName, 1000);
- log.info("CALL db.edgeLabels() : " + res);
-
- // count all vertexs
- String vertexCount = client.callCypher("MATCH (n) RETURN count(n)", graphName, 1000);
- log.info(vertexCount);
- // count all edges
- String edgeCount = client.callCypher("MATCH (n)-[r]->(m) RETURN count(r)", graphName, 1000);
- log.info(edgeCount);
- }
-
- @Test
- // create vertex and edge labels by cypher statements
- // create vertex and edge data by cypher statements
- void demo3() throws IOException {
- String graphName = "demo3";
- deleteAndCreate(graphName);
- // create vertex `person` label
- client.callCypher("CALL db.createVertexLabel(" +
- "'person'," + // vertex name
- "'id'," + // primary property
- "'id', int32, false," +
- "'name', string, false," +
- "'born', int32, true," +
- "'poster_image', string, true" +
- ")", graphName, 1000);
-
- // create vertex `movie` label
- client.callCypher("CALL db.createVertexLabel(" +
- "'movie'," + // vertex name
- "'id'," + // primary property
- "'id',int32, false," +
- "'title', string, false," +
- "'tagline', string, false," +
- "'summary', string, true," +
- "'poster_image', string, true," +
- "'duration', int32, false," +
- "'rated', string, true" +
- ")", graphName, 1000);
-
- // create edge `acted_in` label
- client.callCypher(("CALL db.createEdgeLabel(" +
- "'acted_in'," + // edge name
- "'[]'," + // edge constraints. empty array means no constraints;
- "'role', string, false)"), graphName, 1000);
-
- // doc-zh/3.developer-document/2.cypher.md
-
- // 2,Laurence Fishburne,1961,https://image.tmdb.org/t/p/w185/mh0lZ1XsT84FayMNiT6Erh91mVu.jpg
- // create vertex by cypher
- client.callCypher("CREATE (n:person {" +
- "id: 2," +
- "name: 'Laurence Fishburne'," +
- "born: 1961," +
- "poster_image: 'https://image.tmdb.org/t/p/w185/mh0lZ1XsT84FayMNiT6Erh91mVu.jpg'})", graphName, 1000);
-
- // 130,Cloud Atlas,Everything is Connected,placeholder text,http://image.tmdb.org/t/p/w185/k9gWDjfXM80iXQLuMvPlZgSFJgR.jpg,172,R
- // create vertex by cypher
- client.callCypher("CREATE (n:movie {" +
- "id: 130," +
- "title: 'Cloud Atlas'," +
- "tagline:'Everything is Connected'," +
- "summary: 'placeholder text'," +
- "poster_image: 'http://image.tmdb.org/t/p/w185/k9gWDjfXM80iXQLuMvPlZgSFJgR.jpg'," +
- "duration: 172," +
- "rated: 'R'})", graphName, 1000);
-
- // create edge by cypher
- client.callCypher("MATCH (a:person), (b:movie) WHERE a.id = 2 AND b.id = 130 CREATE (a)-[r:acted_in {role: 'Morpheus'}]->(b)", graphName, 1000);
-
- // get all vertex labels
- String res = client.callCypher("CALL db.vertexLabels()", graphName, 1000);
- log.info("CALL db.vertexLabels() : " + res);
- // get all edge labels
- res = client.callCypher("CALL db.edgeLabels()", graphName, 1000);
- log.info("CALL db.edgeLabels() : " + res);
-
- // count all vertexs
- String vertexCount = client.callCypher("MATCH (n) RETURN count(n)", graphName, 1000);
- log.info(vertexCount);
- // count all edges
- String edgeCount = client.callCypher("MATCH (n)-[r]->(m) RETURN count(r)", graphName, 1000);
- log.info(edgeCount);
- }
-}
diff --git a/demo/JavaClientDemo/src/main/resources/log4j.properties b/demo/JavaClientDemo/src/main/resources/log4j.properties
deleted file mode 100644
index a44181f7ef..0000000000
--- a/demo/JavaClientDemo/src/main/resources/log4j.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-log4j.rootLogger = info,stdout,D,E
-
-log4j.appender.stdout = org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.Target = System.out
-log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS}ms, [%t]:%m%n
\ No newline at end of file
diff --git a/demo/TuGraphOGMDemo/pom.xml b/demo/TuGraphOGMDemo/pom.xml
deleted file mode 100644
index 5953df46e3..0000000000
--- a/demo/TuGraphOGMDemo/pom.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
- 4.0.0
-
- org.example
- TuGpraphOgmTest
- 1.0-SNAPSHOT
-
-
- 11
- 11
-
-
-
-
- org.neo4j
- neo4j-ogm-api
- 0.1.0-SNAPSHOT
-
-
-
- org.neo4j
- neo4j-ogm-core
- 0.1.0-SNAPSHOT
-
-
-
- org.neo4j
- tugraph-rpc-driver
- 0.1.0-SNAPSHOT
-
-
-
- org.assertj
- assertj-core
- compile
- 3.20.2
-
-
-
- org.apache.logging.log4j
- log4j-slf4j-impl
- 2.13.2
- test
-
-
- org.apache.logging.log4j
- log4j-core
- 2.19.0
- test
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-shade-plugin
- 3.1.1
-
-
- package
-
- shade
-
-
-
-
-
- *:*
-
- META-INF/*.SF
- META-INF/*.DSA
- META-INF/*.RSA
-
-
-
-
-
- test.TestBase
-
-
- false
-
-
-
-
-
-
-
diff --git a/demo/TuGraphOGMDemo/src/main/java/entity/Actor.java b/demo/TuGraphOGMDemo/src/main/java/entity/Actor.java
deleted file mode 100644
index 09408bce7c..0000000000
--- a/demo/TuGraphOGMDemo/src/main/java/entity/Actor.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package entity;
-
-import java.util.HashSet;
-import java.util.Set;
-import org.neo4j.ogm.annotation.Id;
-import org.neo4j.ogm.annotation.NodeEntity;
-import org.neo4j.ogm.annotation.Relationship;
-
-@NodeEntity
-public class Actor {
-
- @Id
- private Long id;
- private String name;
-
- @Relationship(type = "ACTS_IN", direction = Relationship.Direction.OUTGOING)
- private Set movies = new HashSet<>();
-
- public Actor() {
- }
-
- public Actor(String name) {
- this.name = name;
- }
-
- public void actsIn(Movie movie) {
- movies.add(movie);
- movie.getActors().add(this);
- }
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public Set getMovies() {
- return movies;
- }
-
- public void setMovies(Set movies) {
- this.movies = movies;
- }
-}
diff --git a/demo/TuGraphOGMDemo/src/main/java/entity/Movie.java b/demo/TuGraphOGMDemo/src/main/java/entity/Movie.java
deleted file mode 100644
index 06126ddb83..0000000000
--- a/demo/TuGraphOGMDemo/src/main/java/entity/Movie.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package entity;
-
-import java.util.HashSet;
-import java.util.Set;
-import org.neo4j.ogm.annotation.Id;
-import org.neo4j.ogm.annotation.NodeEntity;
-import org.neo4j.ogm.annotation.Relationship;
-
-@NodeEntity
-public class Movie {
-
- @Id
- private Long id;
- private String title;
- private int released;
-
- @Relationship(type = "ACTS_IN", direction = Relationship.Direction.INCOMING)
- Set actors = new HashSet<>();
-
- public Movie() {
- }
-
- public Movie(String title, int year) {
- this.title = title;
- this.released = year;
- }
-
- public Long getId() {
- return id;
- }
-
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public int getReleased() {
- return released;
- }
-
- public void setReleased(int released) {
- this.released = released;
- }
-
- public Set getActors() {
- return actors;
- }
-
- public void setActors(Set actors) {
- this.actors = actors;
- }
-
-}
\ No newline at end of file
diff --git a/demo/TuGraphOGMDemo/src/main/java/test/Client.java b/demo/TuGraphOGMDemo/src/main/java/test/Client.java
deleted file mode 100644
index abd7dd9dfc..0000000000
--- a/demo/TuGraphOGMDemo/src/main/java/test/Client.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package test;
-
-import org.neo4j.ogm.config.Configuration;
-import org.neo4j.ogm.driver.Driver;
-import org.neo4j.ogm.drivers.rpc.driver.RpcDriver;
-
-public class Client {
- private static Configuration.Builder baseConfigurationBuilder;
-
- protected static Driver getDriver(String[] args) {
- String databaseUri = "list://" + args[0];
- String username = args[1];
- String password = args[2];
-
- Driver driver = new RpcDriver();
- baseConfigurationBuilder = new Configuration.Builder()
- .uri(databaseUri)
- .verifyConnection(true)
- .credentials(username, password);
- driver.configure(baseConfigurationBuilder.build());
- return driver;
- }
-}
diff --git a/demo/TuGraphOGMDemo/src/main/java/test/TestBase.java b/demo/TuGraphOGMDemo/src/main/java/test/TestBase.java
deleted file mode 100644
index 0357544f09..0000000000
--- a/demo/TuGraphOGMDemo/src/main/java/test/TestBase.java
+++ /dev/null
@@ -1,174 +0,0 @@
-package test;
-
-import com.alibaba.fastjson.JSONObject;
-import entity.Actor;
-import entity.Movie;
-import org.neo4j.ogm.cypher.ComparisonOperator;
-import org.neo4j.ogm.model.QueryStatistics;
-import org.neo4j.ogm.model.Result;
-import org.neo4j.ogm.session.Session;
-import org.neo4j.ogm.session.SessionFactory;
-import org.neo4j.ogm.cypher.Filter;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.util.*;
-
-import static java.util.Collections.emptyMap;
-import static org.assertj.core.api.Assertions.*;
-
-
-public class TestBase extends Client{
- private static final Logger log = LoggerFactory.getLogger(TestBase.class);
- private static SessionFactory sessionFactory;
- private static Session session;
-
-
- public static void main(String[] args) {
- if (args.length != 3) {
- log.info("java -jar target/TuGpraphOgmTest-1.0-SNAPSHOT.jar [host:port] [user] [password]");
- return;
- }
- sessionFactory = new SessionFactory(getDriver(args), "entity");
- session = sessionFactory.openSession();
-
- testCreate();
- testQuery();
- testUpdate();
- testDelete();
- }
-
- private static void testDelete() {
- log.info("----------------testDelete--------------------");
- // Test1 CREATE -> DELETE
- Actor a1 = new Actor();
- Actor a2 = new Actor();
- a1.setName("ado");
- a2.setName("abo");
- session.save(a1);
- session.save(a2);
- Collection savedActors = session.loadAll(Actor.class);
- assertThat(savedActors).hasSize(4);
-
- List