You can use a import org.neo4j.test.ImpermanentGraphDatabase; which uses a temporary directory and cleans its contents before startup.
It is contained in the neo4j-kernel-tests.jar. <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-kernel</artifactId> <type>test-jar</type> <scope>test</scope> </dependency> HTH Michael Am 08.10.2011 um 22:19 schrieb Steve Jalim: > 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