Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

upgraded parent pom and to 1.9.M04

  • Loading branch information...
commit db187a4db3e69903ee7af3f559dc896e61fb0335 1 parent 5bbc5e3
@jexp jexp authored
View
4 pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>org.neo4j.build</groupId>
<artifactId>parent-central</artifactId>
- <version>35</version>
+ <version>36</version>
<relativePath/>
</parent>
<groupId>org.neo4j</groupId>
@@ -15,7 +15,7 @@
<url>http://components.neo4j.org/${project.artifactId}/${project.version}</url>
<properties>
- <neo4j.version>1.8</neo4j.version>
+ <neo4j.version>1.9.M04</neo4j.version>
<querydsl.version>2.8.0</querydsl.version>
<bundle.namespace>org.neo4j.cypherdsl</bundle.namespace>
<short-name>cypher-dsl</short-name>
View
13 src/test/java/org/neo4j/cypherdsl/AbstractCypherTest.java
@@ -25,10 +25,12 @@
import org.junit.After;
import org.junit.AfterClass;
+import org.junit.Before;
import org.junit.BeforeClass;
import org.neo4j.cypher.MissingIndexException;
import org.neo4j.cypher.javacompat.ExecutionEngine;
import org.neo4j.graphdb.NotFoundException;
+import org.neo4j.graphdb.Transaction;
import org.neo4j.test.ImpermanentGraphDatabase;
public abstract class AbstractCypherTest
@@ -37,6 +39,7 @@
public static final String CYPHER = "CYPHER 1.8 ";
private static ImpermanentGraphDatabase graphdb;
protected static ExecutionEngine engine;
+ private Transaction tx;
@BeforeClass
public static void classSetup() throws IOException
@@ -47,9 +50,19 @@ public static void classSetup() throws IOException
engine = new ExecutionEngine( graphdb );
}
+ @Before
+ public void setUp() throws Exception {
+ tx = graphdb.beginTx();
+ }
+
@After
public void cleanContent()
{
+ if (tx!=null) {
+ tx.failure();
+ tx.finish();
+ tx = null;
+ }
graphdb.cleanContent( true );
}
Please sign in to comment.
Something went wrong with that request. Please try again.