A few fixes to makes tests run on JDK 17

This commit is contained in:
Sebastian Kürten
2021-11-23 14:09:35 +01:00
parent 1bfd9e4eb0
commit 0a41c1e325
8 changed files with 86 additions and 77 deletions

View File

@@ -51,3 +51,10 @@ task jarTest(type: Jar, dependsOn: testClasses) {
artifacts {
testOutput jarTest
}
test {
// for random = context.mock(SecureRandom.class); in PollerImplTest
jvmArgs = [
'--add-opens', 'java.base/java.security=ALL-UNNAMED',
]
}