Upgrade to mockito-android

pull/996/head
Alex Baker 6 years ago
parent 17a9b1467f
commit e9aaf446bf

@ -197,7 +197,7 @@ dependencies {
kaptAndroidTest("com.google.dagger:dagger-compiler:${Versions.dagger}")
kaptAndroidTest("com.jakewharton:butterknife-compiler:${Versions.butterknife}")
androidTestImplementation("com.google.dexmaker:dexmaker-mockito:1.2")
androidTestImplementation("org.mockito:mockito-android:3.3.3")
androidTestImplementation("com.natpryce:make-it-easy:4.0.1")
androidTestImplementation("androidx.test:runner:1.2.0")
androidTestImplementation("androidx.test:rules:1.2.0")

@ -46,7 +46,7 @@ class BackupWorkTest {
companion object {
private fun newFile(lastModified: DateTime): File {
val result = Mockito.mock(File::class.java)
Mockito.stub(result.lastModified()).toReturn(lastModified.millis)
Mockito.`when`(result.lastModified()).thenReturn(lastModified.millis)
return result
}
}

Loading…
Cancel
Save