Upgrade java mockito from version 1.x to version 5 (#2781)
* use mockito 5
* remove unnecessary flag
* fix java annotation test file name
diff --git a/lib/java/gradle/environment.gradle b/lib/java/gradle/environment.gradle
index f25f3e6..cb61c05 100644
--- a/lib/java/gradle/environment.gradle
+++ b/lib/java/gradle/environment.gradle
@@ -68,6 +68,6 @@
implementation "org.apache.commons:commons-lang3:${commonsLang3Version}"
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
- testImplementation "org.mockito:mockito-all:${mockitoVersion}"
+ testImplementation "org.mockito:mockito-core:${mockitoVersion}"
testRuntimeOnly "org.slf4j:slf4j-log4j12:${slf4jVersion}"
}