@@ -73,17 +73,19 @@ dependencies {
7373
7474 // Dependencies used for unit tests.
7575 testImplementation ' junit:junit:4.13'
76- testImplementation(' org.robolectric:robolectric:4.3.1 ' ) {
76+ testImplementation(' org.robolectric:robolectric:4.7.3 ' ) {
7777 exclude group : ' commons-logging' , module : ' commons-logging'
7878 exclude group : ' org.apache.httpcomponents' , module : ' httpclient'
7979 }
80+ testImplementation ' commons-io:commons-io:2.16.1'
8081 testImplementation ' org.robolectric:shadows-play-services:3.3.2'
8182 testImplementation ' org.mockito:mockito-core:1.10.19'
8283 testImplementation ' org.powermock:powermock-module-junit4:1.6.5'
8384 testImplementation ' org.powermock:powermock-module-junit4-rule:1.6.5'
8485 testImplementation ' org.powermock:powermock-api-mockito:1.6.5'
8586 testImplementation ' org.powermock:powermock-classloading-xstream:1.6.5'
86- testImplementation ' org.bouncycastle:bcmail-jdk15on:1.65'
87+ testImplementation ' org.powermock:powermock-classloading-xstream:1.6.5'
88+ testImplementation ' org.bouncycastle:bcmail-jdk18on:1.71.1'
8789
8890 androidTestImplementation ' androidx.test.ext:junit:1.1.5'
8991 androidTestImplementation ' androidx.test:runner:1.2.0'
@@ -106,3 +108,24 @@ configurations {
106108artifacts {
107109 unitTestArtifact jarTests
108110}
111+
112+ tasks. withType(Test ) {
113+ jvmArgs ' --add-opens=java.base/java.lang.reflect=ALL-UNNAMED' ,
114+ ' --add-opens=java.base/java.lang=ALL-UNNAMED' ,
115+ ' --add-opens=java.base/java.net=ALL-UNNAMED' ,
116+ ' --add-opens=java.base/java.util=ALL-UNNAMED' ,
117+ ' --add-opens=java.base/java.text=ALL-UNNAMED' ,
118+ ' --add-opens=java.desktop/java.awt.font=ALL-UNNAMED' ,
119+ ' --add-opens=java.base/java.security=ALL-UNNAMED' ,
120+ ' --add-opens=java.base/java.io=ALL-UNNAMED' ,
121+ ' --add-opens=java.base/sun.security.jca=ALL-UNNAMED' ,
122+ ' --add-opens=java.base/sun.security.util=ALL-UNNAMED' ,
123+ ' --add-opens=java.base/jdk.internal.util=ALL-UNNAMED' ,
124+ ' --add-opens=java.base/javax.net.ssl=ALL-UNNAMED' ,
125+ ' --add-opens=java.base/java.util.regex=ALL-UNNAMED' ,
126+ ' --add-opens=java.base/java.util.concurrent=ALL-UNNAMED' ,
127+ ' --add-opens=java.base/sun.util.calendar=ALL-UNNAMED' ,
128+ ' --add-opens=java.base/java.util.zip=ALL-UNNAMED' ,
129+ ' --add-opens=java.base/java.nio.charset=ALL-UNNAMED'
130+
131+ }
0 commit comments