Skip to content

Commit 8464caa

Browse files
committed
bump mockito to support jdk21, IC-2024.2 runs tests with it regardless
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent ce7e878 commit 8464caa

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

build.gradle.kts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
12
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
23
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
34
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
@@ -59,9 +60,8 @@ dependencies {
5960
// for unit tests
6061
testImplementation(libs.junit)
6162
testImplementation(libs.assertj.core)
62-
testImplementation(libs.mockito.inline)
63+
testImplementation(libs.mockito.core)
6364
testImplementation(libs.opentest4j) // known issue: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-faq.html#missing-opentest4j-dependency-in-test-framework
64-
6565
}
6666

6767
tasks {
@@ -73,6 +73,9 @@ tasks {
7373
useJUnit()
7474
systemProperty("tools.dl.path", temporaryDir)
7575
jvmArgs("-Djava.awt.headless=true")
76+
testLogging {
77+
exceptionFormat = TestExceptionFormat.FULL
78+
}
7679
}
7780

7881
withType<Test> {

gradle/libs.versions.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ commons-lang3 = "3.12.0"
77
commons-exec = "1.3"
88
common-lang = "3.9.4"
99
assertj-core = "3.22.0"
10-
mockito-inline = "4.5.1"
10+
mockito-core = "5.14.2"
1111
opentest4j = "1.3.0"
1212

1313
# plugins
@@ -22,7 +22,7 @@ kubernetes-httpclient-okhttp = { group = "io.fabric8", name = "kubernetes-httpcl
2222
jackson-core = { group = "com.fasterxml.jackson.core", name = "jackson-core", version.ref = "jackson-core" }
2323
commons-lang3 = { group = "org.apache.commons", name = "commons-lang3", version.ref = "commons-lang3" }
2424
assertj-core = { group = "org.assertj", name = "assertj-core", version.ref = "assertj-core" }
25-
mockito-inline = { group = "org.mockito", name = "mockito-inline", version.ref = "mockito-inline" }
25+
mockito-core = { group = "org.mockito", name = "mockito-core", version.ref = "mockito-core" }
2626
commons-exec = { group = "org.apache.commons", name = "commons-exec", version.ref = "commons-exec" }
2727
common-lang = { group = "com.twelvemonkeys.common", name = "common-lang", version.ref = "common-lang" }
2828
opentest4j = { group = "org.opentest4j", name = "opentest4j", version.ref = "opentest4j" }

0 commit comments

Comments
 (0)