You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.reflect.InaccessibleObjectException: Unable to make public void org.mockito.moduletest.ModuleHandlingTest.can_define_class_in_open_java_util_module() throws java.lang.Exception accessible: module mockito.module.test.test does not "exports org.mockito.moduletest" to module junit
plugins {
id 'org.gradlex.java-module-testing' version '1.4'
}
configurations {
testUtil //TODO move to separate project// Putting 'provided' dependencies on test compile and runtime classpath.
testCompileOnly.extendsFrom(compileOnly)
testRuntimeOnly.extendsFrom(compileOnly)
}
dependencies {
// scratching head, api but also optional...
api libraries.bytebuddy, libraries.bytebuddyagent
compileOnly libraries.junit4, libraries.hamcrest, libraries.opentest4j
implementation libraries.objenesis
testImplementation libraries.assertj
testImplementation libraries.junitJupiterApi
testImplementation libraries.junitJupiterParams
}
javaModuleTesting.whitebox(testing.suites["test"]) {
requires.add("org.junit.jupiter.api")
requires.add("org.junit.jupiter.params")
requires.add("org.assertj.core")
requires.add("java.sql")
requires.add("java.management")
// opensTo.add("junit")
}
https://github.com/xenoterracide/mockito/pull/1/files
The text was updated successfully, but these errors were encountered: