Database Reference
In-Depth Information
JUnit (provided by http://junit.org ) is one of the most popular frameworks for writing
Java-based unit test cases.
Let's perform the following steps to integrate JUnit framework, and enhance our Maven
project, MyNeo4jSamples , and then add some basic unit test cases:
1. Open your MyNeo4jSamples/pom.xml file and add the following properties
just below the <packaging> tag:
<properties>
<java.version>1.7</java.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
2. Add the following dependencies in the <dependency> section:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>2.1.5</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
Search WWH ::




Custom Search