Take a look at ImpermanentTestDatabse, available from the kernel-tests library.

import org.neo4j.test.ImpermanentGraphDatabase;

Maven dependency…

    <dependency>
      <groupId>org.neo4j</groupId>
      <artifactId>neo4j-kernel</artifactId>
      <version>${neo4j.version}</version>
      <classifier>tests</classifier>
    </dependency>

Cheers,
Andreas
 
On Oct 8, 2011, at 1:19 PM, Steve Jalim wrote:

> Hi
> 
> Is there a common pattern for test-driven development (or even just running
> unit tests) against a Neo DB without filling your development DB with test
> data?
> 
> One solution I've thought might work is to run two Neo DBs, one in
> /path/to/my/sandboxed/dev/data and another in
> /path/to/my/sandboxed/test/data. However, looking at the conf files for neo,
> I can't see scope for that without some fiddling around -- am I missing
> something obvious?
> 
> Cheers
> Steve
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to