lundi 26 janvier 2015

Testing Neo4j managed extensions

I've written a server extension for Neo4j, following the guidelines at http://ift.tt/1DbaX3J . I wrote unit tests for some of the internal methods, but I would also like to test the REST interface if possible.


http://ift.tt/1H0tfut seems to only show how to test unmanaged extensions, but I'm looking for something closely analogous to that for managed extensions. Any pointers?


I do know how to load the extension into a server and query it with curl (as follows), but when things go wrong it's not a fun debug cycle.



curl -X POST -v http://localhost:7474/db/data/ext/NeoPlugin/graphdb/myExt \
-H "Content-Type: application/json" \
-d '{"argFoo": "ACTED_IN", "argBar": ["0", "10"]}'

Aucun commentaire:

Enregistrer un commentaire