- Fixed mockito configuration for bug in 2.X
This commit is contained in:
parent
1240deb4d3
commit
e9e1fbae2f
|
@ -1,4 +1,18 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
|
||||
}
|
||||
}
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'jacoco-android'
|
||||
|
||||
jacoco {
|
||||
toolVersion = "0.8.3"
|
||||
}
|
||||
|
||||
ext {
|
||||
wearableVersion = "2.4.0"
|
||||
|
@ -109,7 +123,16 @@ dependencies {
|
|||
|
||||
testImplementation "junit:junit:4.12"
|
||||
testImplementation "org.json:json:20140107"
|
||||
testImplementation "org.mockito:mockito-core:2.8.47"
|
||||
testImplementation ("org.mockito:mockito-core:2.8.47") {
|
||||
exclude group: 'net.bytebuddy', module: 'byte-buddy'
|
||||
exclude group: 'net.bytebuddy', module: 'byte-buddy-android'
|
||||
exclude group: 'net.bytebuddy', module: 'byte-buddy-agent'
|
||||
}
|
||||
// to fix org.mockito:mockito-core dependency issues, fixed in mockito 3+
|
||||
testImplementation 'net.bytebuddy:byte-buddy:1.8.22'
|
||||
testImplementation 'net.bytebuddy:byte-buddy-android:1.8.22'
|
||||
testImplementation 'net.bytebuddy:byte-buddy-agent:1.8.22'
|
||||
|
||||
testImplementation "org.powermock:powermock-api-mockito2:${powermockVersion}"
|
||||
testImplementation "org.powermock:powermock-module-junit4-rule-agent:${powermockVersion}"
|
||||
testImplementation "org.powermock:powermock-module-junit4-rule:${powermockVersion}"
|
||||
|
|
Loading…
Reference in a new issue