Skip to content

Commit

Permalink
Ignore mockito 4 tests for Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Oct 11, 2023
1 parent 7f7d209 commit 2b8021a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spock-specs/mock-integration/mock-integration.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ codeGenerationLibraries.each { key, config ->
}
onlyIf { rootProject.ext.javaVersion < 21}
}
if (key == "mockito4") {
// mockito4 only supports up to Java 20
onlyIf { rootProject.ext.javaVersion < 21}
}
}
tasks.register("test${key.capitalize()}WithObjenesis", Test) {
systemProperty("org.spockframework.mock.testType", "${key.toLowerCase()} + objenesis")
Expand All @@ -64,6 +68,10 @@ codeGenerationLibraries.each { key, config ->
}
onlyIf { rootProject.ext.javaVersion < 21}
}
if (key == "mockito4") {
// mockito4 only supports up to Java 20
onlyIf { rootProject.ext.javaVersion < 21}
}
}
}

Expand Down

0 comments on commit 2b8021a

Please sign in to comment.