Re: [Neo4j] Using in-memory DB for unit tests

2011-11-30 Thread Jon Walton
Oh man do I feel stupid - thank you both. The IMDB tutorial was so good I created a project without fully reading the API docs. Regards, Jon On Tue, Nov 29, 2011 at 10:54 PM, Michael Hunger michael.hun...@neotechnology.com wrote: you can also use rel.getOtherNode(startNode) Michael

Re: [Neo4j] Using in-memory DB for unit tests

2011-11-29 Thread Linan Wang
Why call tx.failure in close db? On Wednesday, November 30, 2011, Jon Walton jon.w.wal...@gmail.com wrote: Greetings - I have started my first project using neo4j, and am having some trouble with unit tests. I must be missing something, but when I retrieve a node using an incoming direction,

Re: [Neo4j] Using in-memory DB for unit tests

2011-11-29 Thread Jon Walton
On Tue, Nov 29, 2011 at 7:20 PM, Linan Wang tali.w...@gmail.com wrote: Why call tx.failure in close db? To assure a pristine DB between unit tests, as suggested here: http://wiki.neo4j.org/content/Testing_with_Neo4j I don't think this is the cause of my problem as the exception gets thrown

Re: [Neo4j] Using in-memory DB for unit tests

2011-11-29 Thread Jim Webber
Hi Jon, // This one results in a not found exception on the 'asn' property. @Test public void testIncoming() { Node network = svc.createNode(); Node as = svc.createNode(); as.setProperty( asn, 123 ); as.createRelationshipTo( network,

Re: [Neo4j] Using in-memory DB for unit tests

2011-11-29 Thread Michael Hunger
you can also use rel.getOtherNode(startNode) Michael mobile mail please excuse brevity and typos Am 30.11.2011 um 06:03 schrieb Jim Webber j...@neotechnology.com: Hi Jon, // This one results in a not found exception on the 'asn' property. @Test public void testIncoming() {