Skip to content

Commit c4b5aaa

Browse files
Use Mockito version compatible with Java 8 (#2275)
Use Mockito compatible with Java 8
1 parent 90f384e commit c4b5aaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ goPluginVersion=231.8109.175
2525
junit5Version=5.8.2
2626
junit4Version=4.13.2
2727
junit4PlatformVersion=1.9.0
28-
mockitoVersion=5.2.0
28+
# NOTE: Mockito versions 5+ are not compatible with Java 8: https://www.davidvlijmincx.com/posts/upgrade-to-mockito-5
29+
mockitoVersion=4.11.0
2930
mockitoInlineVersion=5.2.0
3031
ksmtVersion=0.4.3
3132
sootVersion=4.4.0-FORK-2

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/models/ExternalLibraryDescriptors.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fun jUnit5ParametrizedTestsLibraryDescriptor(versionInProject: Version?): Extern
3636
}
3737

3838
fun mockitoCoreLibraryDescriptor(versionInProject: Version?): ExternalLibraryDescriptor {
39-
val preferredVersion = if (versionInProject?.hasNumericOrEmptyPatch() == true) versionInProject?.plainText else "5.2.0"
39+
val preferredVersion = if (versionInProject?.hasNumericOrEmptyPatch() == true) versionInProject?.plainText else "4.11.0"
4040
return ExternalLibraryDescriptor(
4141
"org.mockito", "mockito-core",
4242
"3.5.0", null, preferredVersion

0 commit comments

Comments
 (0)