Remove Mockito dependency from project.

Resolves #13838
This commit is contained in:
Jameson Williams 2024-12-12 11:46:58 -06:00 committed by Greyson Parrelli
parent 9f181127e6
commit 894230f9df
10 changed files with 1 additions and 41 deletions

View file

@ -591,8 +591,6 @@ dependencies {
testImplementation(testLibs.junit.junit) testImplementation(testLibs.junit.junit)
testImplementation(testLibs.assertj.core) testImplementation(testLibs.assertj.core)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockito.kotlin)
testImplementation(testLibs.androidx.test.core) testImplementation(testLibs.androidx.test.core)
testImplementation(testLibs.robolectric.robolectric) { testImplementation(testLibs.robolectric.robolectric) {
exclude(group = "com.google.protobuf", module = "protobuf-java") exclude(group = "com.google.protobuf", module = "protobuf-java")

View file

@ -7,7 +7,6 @@
-dontwarn sun.misc.** -dontwarn sun.misc.**
-dontwarn org.assertj.** -dontwarn org.assertj.**
-dontwarn org.hamcrest.** -dontwarn org.hamcrest.**
-dontwarn org.mockito.**
-dontwarn com.squareup.** -dontwarn com.squareup.**
-dontobfuscate -dontobfuscate

View file

@ -353,9 +353,6 @@ The following dependencies are licensed under The MIT License:
* ktlint-rule-engine-core (https://github.com/pinterest/ktlint) * ktlint-rule-engine-core (https://github.com/pinterest/ktlint)
* ktlint-ruleset-standard (https://github.com/pinterest/ktlint) * ktlint-ruleset-standard (https://github.com/pinterest/ktlint)
* maven-dependency-resolver (http://robolectric.org) * maven-dependency-resolver (http://robolectric.org)
* mockito-android (https://github.com/mockito/mockito)
* mockito-core (https://github.com/mockito/mockito)
* mockito-inline (https://github.com/mockito/mockito)
* nativeruntime (http://robolectric.org) * nativeruntime (http://robolectric.org)
* pluginapi (http://robolectric.org) * pluginapi (http://robolectric.org)
* reflector (http://robolectric.org) * reflector (http://robolectric.org)

View file

@ -37,8 +37,7 @@ object Licenses {
} }
"https://opensource.org/licenses/MIT", "https://opensource.org/licenses/MIT",
"http://opensource.org/licenses/MIT", "http://opensource.org/licenses/MIT",
"http://www.opensource.org/licenses/mit-license.php", "http://www.opensource.org/licenses/mit-license.php" -> {
"https://github.com/mockito/mockito/blob/main/LICENSE" -> {
MIT MIT
} }
"http://www.eclipse.org/legal/epl-v10.html" -> { "http://www.eclipse.org/legal/epl-v10.html" -> {

View file

@ -61,8 +61,6 @@ dependencies {
ktlintRuleset(libs.ktlint.twitter.compose) ktlintRuleset(libs.ktlint.twitter.compose)
testImplementation(testLibs.junit.junit) testImplementation(testLibs.junit.junit)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockito.kotlin)
testImplementation(testLibs.robolectric.robolectric) testImplementation(testLibs.robolectric.robolectric)
testImplementation(testLibs.androidx.test.core) testImplementation(testLibs.androidx.test.core)
testImplementation(testLibs.androidx.test.core.ktx) testImplementation(testLibs.androidx.test.core.ktx)

View file

@ -79,8 +79,6 @@ dependencies {
ktlintRuleset(libs.ktlint.twitter.compose) ktlintRuleset(libs.ktlint.twitter.compose)
testImplementation(testLibs.junit.junit) testImplementation(testLibs.junit.junit)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockito.kotlin)
testImplementation(testLibs.robolectric.robolectric) testImplementation(testLibs.robolectric.robolectric)
testImplementation(testLibs.androidx.test.core) testImplementation(testLibs.androidx.test.core)
testImplementation(testLibs.androidx.test.core.ktx) testImplementation(testLibs.androidx.test.core.ktx)

View file

@ -14,7 +14,6 @@ dependencies {
implementation(libs.androidx.documentfile) implementation(libs.androidx.documentfile)
testImplementation(testLibs.junit.junit) testImplementation(testLibs.junit.junit)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.robolectric.robolectric) testImplementation(testLibs.robolectric.robolectric)
} }

View file

@ -17,8 +17,6 @@ androidx-test-orchestrator = "androidx.test:orchestrator:1.4.1"
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test" } androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test" }
espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" } espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" }
kotlinx-coroutines-test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0" kotlinx-coroutines-test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0"
mockito-core = "org.mockito:mockito-inline:4.6.1"
mockito-kotlin = "org.mockito.kotlin:mockito-kotlin:4.0.0"
robolectric-robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" } robolectric-robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
bouncycastle-bcprov-jdk15on = "org.bouncycastle:bcprov-jdk15on:1.70" bouncycastle-bcprov-jdk15on = "org.bouncycastle:bcprov-jdk15on:1.70"
bouncycastle-bcpkix-jdk15on = "org.bouncycastle:bcpkix-jdk15on:1.70" bouncycastle-bcpkix-jdk15on = "org.bouncycastle:bcpkix-jdk15on:1.70"

View file

@ -3937,11 +3937,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html
<sha256 value="757bfe906193b8b651e79dc26cd67d6b55d0770a2cdfb0381591504f779d4a76" origin="Generated by Gradle"/> <sha256 value="757bfe906193b8b651e79dc26cd67d6b55d0770a2cdfb0381591504f779d4a76" origin="Generated by Gradle"/>
</artifact> </artifact>
</component> </component>
<component group="com.googlecode.libphonenumber" name="libphonenumber" version="8.13.40">
<artifact name="libphonenumber-8.13.40.jar">
<sha256 value="397eeb53b568b4ff98a60e52fca50fe75bbfc1ffdd972fbe4d745bb7c66bf065" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="com.googlecode.libphonenumber" name="libphonenumber" version="8.13.50"> <component group="com.googlecode.libphonenumber" name="libphonenumber" version="8.13.50">
<artifact name="libphonenumber-8.13.50.jar"> <artifact name="libphonenumber-8.13.50.jar">
<sha256 value="61d7ec7de6ecf6f1cf3c22b595b358c8fbe32a7b104b5b356258902bb0e914db" origin="Generated by Gradle"/> <sha256 value="61d7ec7de6ecf6f1cf3c22b595b358c8fbe32a7b104b5b356258902bb0e914db" origin="Generated by Gradle"/>
@ -4950,11 +4945,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html
<sha256 value="5e8606d14a844c1ec70d2eb8f50c4009fb16138905dee8ca50a328116c041257" origin="Generated by Gradle"/> <sha256 value="5e8606d14a844c1ec70d2eb8f50c4009fb16138905dee8ca50a328116c041257" origin="Generated by Gradle"/>
</artifact> </artifact>
</component> </component>
<component group="net.bytebuddy" name="byte-buddy-android" version="1.12.10">
<artifact name="byte-buddy-android-1.12.10.jar">
<sha256 value="5e2c0b2ddb02e51fe95e4a58052fc7af91e566b627fe52f4e15699baa1f686d7" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="net.java.dev.jna" name="jna" version="5.6.0"> <component group="net.java.dev.jna" name="jna" version="5.6.0">
<artifact name="jna-5.6.0.jar"> <artifact name="jna-5.6.0.jar">
<sha256 value="5557e235a8aa2f9766d5dc609d67948f2a8832c2d796cea9ef1d6cbe0b3b7eaf" origin="Generated by Gradle"/> <sha256 value="5557e235a8aa2f9766d5dc609d67948f2a8832c2d796cea9ef1d6cbe0b3b7eaf" origin="Generated by Gradle"/>
@ -6010,21 +6000,6 @@ https://docs.gradle.org/current/userguide/dependency_verification.html
<sha256 value="20522549056e9e50aa35ef0b445a2e47a53d06be0b0a9467d704e2483ffb049a" origin="Generated by Gradle"/> <sha256 value="20522549056e9e50aa35ef0b445a2e47a53d06be0b0a9467d704e2483ffb049a" origin="Generated by Gradle"/>
</artifact> </artifact>
</component> </component>
<component group="org.mockito" name="mockito-core" version="4.6.1">
<artifact name="mockito-core-4.6.1.jar">
<sha256 value="ee3b91cdf4c23cff92960c32364371c683ee6415f1ec4678317bcea79c9f9819" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.mockito" name="mockito-inline" version="4.6.1">
<artifact name="mockito-inline-4.6.1.jar">
<sha256 value="ee52e1c299a632184fba274a9370993e09140429f5e516e6c5570fd6574b297f" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.mockito.kotlin" name="mockito-kotlin" version="4.0.0">
<artifact name="mockito-kotlin-4.0.0.jar">
<sha256 value="046eabba9c38816f75114163ac5074630f335dcdeeac52f228ce71c732c3d75f" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.mozilla" name="rhino" version="1.7.7"> <component group="org.mozilla" name="rhino" version="1.7.7">
<artifact name="rhino-1.7.7.jar"> <artifact name="rhino-1.7.7.jar">
<sha256 value="73b8d6bbbd1a6a3a87ea0eea301996deac83f8d40b404518a10afd4d320b5b31" origin="Generated by Gradle"/> <sha256 value="73b8d6bbbd1a6a3a87ea0eea301996deac83f8d40b404518a10afd4d320b5b31" origin="Generated by Gradle"/>

View file

@ -103,7 +103,6 @@ dependencies {
testImplementation(testLibs.junit.junit) testImplementation(testLibs.junit.junit)
testImplementation(testLibs.assertj.core) testImplementation(testLibs.assertj.core)
testImplementation(testLibs.conscrypt.openjdk.uber) testImplementation(testLibs.conscrypt.openjdk.uber)
testImplementation(testLibs.mockito.core)
testImplementation(testLibs.mockk) testImplementation(testLibs.mockk)
testImplementation(testLibs.hamcrest.hamcrest) testImplementation(testLibs.hamcrest.hamcrest)