コード例 #1
0
 @Before
 public void setUp() throws Exception {
   Transaction tx = neo4jTemplate.getGraphDatabase().beginTx();
   try {
     Neo4jHelper.cleanDb(neo4jTemplate);
   } finally {
     tx.success();
     tx.finish();
   }
   tx = neo4jTemplate.getGraphDatabase().beginTx();
   try {
     referenceNode = graphDatabase.getReferenceNode();
     createData();
   } finally {
     tx.success();
     tx.finish();
   }
 }
コード例 #2
0
 @BeforeTransaction
 public void cleanDb() {
   Neo4jHelper.cleanDb(neo4jTemplate);
 }
コード例 #3
0
 @BeforeTransaction
 public void beforeTransaction() {
   Neo4jHelper.cleanDb(template);
 }