Skip to content

Instantly share code, notes, and snippets.

@isidromerayo
Created December 30, 2016 13:24
Show Gist options
  • Save isidromerayo/11942c1677074adeedf9186cab59a822 to your computer and use it in GitHub Desktop.
Save isidromerayo/11942c1677074adeedf9186cab59a822 to your computer and use it in GitHub Desktop.
Maven: JUnit + Mockito + Hamcrest
<properties>
<junit4.version>4.11</junit4.version>
<hamcrest.version>1.3</hamcrest.version>
<mockito.version>1.10.19</mockito.version>
</properties>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit4.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>${hamcrest.version}</version>
<scope>test</scope>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment