Skip to content

Instantly share code, notes, and snippets.

@acdcjunior
Last active October 29, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acdcjunior/e333d02f5afb830aea88 to your computer and use it in GitHub Desktop.
Save acdcjunior/e333d02f5afb830aea88 to your computer and use it in GitHub Desktop.
JUnit + Hamcrest + Mockito - Java Unit Tests Dependencies - Mavem pom.xml excerpt
<dependencies>
...
<!-- Test Dependencies Only -->
<!-- Last updated: 2015-10-29 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-junit</artifactId>
<version>2.0.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.10.19</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>hamcrest-core</artifactId>
<groupId>org.hamcrest</groupId>
</exclusion>
</exclusions>
</dependency>
...
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment