Adding Mockito
dependency to your project is pretty simple.
Simply add the dependencies below to your pom.xml.
NOTE: You will need JUnit
version 4.4 or earlier. I couldn't get Mockito to work with higher JUnit versions. Also, I did not try any prior version than Junit 4.4.
<dependency>
<groupid>org.mockito</groupid>
<artifactid>mockito-all</artifactid>
<version>1.8.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupid>junit</groupid>
<artifactid>junit</artifactid>
<version>4.4</version>
<scope>test</scope>
</dependency>
Update: I got Mockito 1.8.5
to work with JUnit 4.7
. Not sure what changed.