Skip to content

Commit 51fa3c2

Browse files
committed
fix tests not running
1 parent 424c2aa commit 51fa3c2

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

build.gradle.kts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ subprojects {
7979
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
8080
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED")
8181

82-
val mockitoAgent = configurations.testRuntimeClasspath.get().find {
83-
it.name.contains("mockito-core")
84-
}
85-
if (mockitoAgent != null) {
86-
jvmArgs("-javaagent:${mockitoAgent.absolutePath}")
87-
}
88-
8982
testLogging {
9083
exceptionFormat = TestExceptionFormat.FULL
9184

operator/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,12 @@ tasks.quarkusDev {
8383
// https://github.com/quarkusio/quarkus/pull/49920
8484
jvmArgs = listOf("--add-opens", "java.base/java.lang=ALL-UNNAMED")
8585
}
86+
87+
tasks.withType<Test> {
88+
val mockitoAgent = configurations.testRuntimeClasspath.get().find {
89+
it.name.contains("mockito-core")
90+
}
91+
if (mockitoAgent != null) {
92+
jvmArgs("-javaagent:${mockitoAgent.absolutePath}")
93+
}
94+
}

0 commit comments

Comments
 (0)