# Agregar build.gradle
repositories { jcenter() }
dependencies { testCompile 'org.mockito:mockito-core:2.7.22' }
# Using Gradle for an Android project
Add the following dependency to the Gradle build file:
dependencies {
// ... more entries
testCompile 'junit:junit:4.12'
// required if you want to use Mockito for unit tests
testCompile 'org.mockito:mockito-core:2.7.22'
// required if you want to use Mockito for Android tests
androidTestCompile 'org.mockito:mockito-android:2.7.22'
}