Replace mockito to mockito2 for newest powermock version
It will help to fix mockito class not found exception when running
tests with gradle.
Test: run ./gradlew test, and all tests passed.
@@ -129,7 +129,7 @@ dependencies {
testImplementation "org.robolectric:robolectric:4.3.1"
testImplementation "org.powermock:powermock-module-junit4:$POWERMOCK_VERSION"
testImplementation "org.powermock:powermock-module-junit4-rule:$POWERMOCK_VERSION"
- testImplementation "org.powermock:powermock-api-mockito:1.7.4"
+ testImplementation "org.powermock:powermock-api-mockito2:$POWERMOCK_VERSION"
testImplementation "org.powermock:powermock-classloading-xstream:$POWERMOCK_VERSION"
}
