Example Neo4j Extension Testing using Travis-CI
-
Build it:
mvn clean package
-
Copy target/travis-1.0.jar to the plugins/ directory of your Neo4j server.
-
Configure Neo4j by adding a line to conf/neo4j-server.properties:
org.neo4j.server.thirdparty_jaxrs_classes=com.maxdemarzi=/v1
-
Start Neo4j server.
-
Create some test data:
CREATE (user1:User {user_id:'u1', name:'Max'}) CREATE (friend1:User {user_id:'f1', name:'Michael'}) CREATE (friend2:User {user_id:'f2', name:'Peter'}) CREATE (friend3:User {user_id:'f3', name:'David'}) CREATE (user1)-[:FRIENDS]->(friend1) CREATE (user1)-[:FRIENDS]->(friend2) CREATE (user1)-[:FRIENDS]->(friend3)
-
Try it:
:GET /v1/service/friends/u1
-
Test it.