Skip to content
Permalink
Browse files
Allow running units test on jdk17 (#3195)
* Allow running units test on jdk17

* Allow running units test on jdk17
  • Loading branch information
Shoothzj committed Apr 11, 2022
1 parent d7a653b commit b989fbcdae74db6e26a815af605634747f431fb9
Showing 6 changed files with 20 additions and 6 deletions.
16 pom.xml
@@ -112,6 +112,7 @@
<javac.target>1.8</javac.target>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<testRetryCount>2</testRetryCount>
<test.additional.args/>

<!-- dependencies -->
<arquillian-cube.version>1.18.2</arquillian-cube.version>
@@ -907,7 +908,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<argLine>-Xmx2G -Djava.net.preferIPv4Stack=true -Dio.netty.leakDetection.level=paranoid</argLine>
<argLine>-Xmx2G -Djava.net.preferIPv4Stack=true -Dio.netty.leakDetection.level=paranoid ${test.additional.args}</argLine>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<forkCount>${forkCount.variable}</forkCount>
<reuseForks>false</reuseForks>
@@ -1211,6 +1212,19 @@
<nar.aolProperties>src/apple_m1_aol.properties</nar.aolProperties>
</properties>
</profile>
<profile>
<id>jdk11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<test.additional.args>
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
</test.additional.args>
</properties>
</profile>
<profile>
<id>apache-release</id>
<build>
@@ -99,7 +99,7 @@
<version>${maven-surefire-plugin.version}</version>
<configuration>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G</argLine>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G ${test.additional.args}</argLine>
<forkMode>always</forkMode>
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
</configuration>
@@ -106,7 +106,7 @@
<configuration>
<trimStackTrace>false</trimStackTrace>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G</argLine>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G ${test.additional.args}</argLine>
<forkMode>always</forkMode>
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
<properties>
@@ -73,7 +73,7 @@
<version>${maven-surefire-plugin.version}</version>
<configuration>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G -Dio.netty.leakDetection.level=PARANOID</argLine>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G -Dio.netty.leakDetection.level=PARANOID ${test.additional.args}</argLine>
<forkMode>always</forkMode>
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
</configuration>
@@ -58,7 +58,7 @@
<!-- only run tests when -DstreamTests is specified //-->
<skipTests>true</skipTests>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G -Dio.netty.leakDetection.level=PARANOID</argLine>
<argLine>-Xmx3G -Djava.net.preferIPv4Stack=true -XX:MaxDirectMemorySize=2G -Dio.netty.leakDetection.level=PARANOID ${test.additional.args}</argLine>
<forkMode>always</forkMode>
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
</configuration>
@@ -85,7 +85,7 @@
https://issues.apache.org/jira/browse/SUREFIRE-1476 //-->
<version>2.8.1</version>
<configuration>
<argLine>-Xmx4G -Djava.net.preferIPv4Stack=true</argLine>
<argLine>-Xmx4G -Djava.net.preferIPv4Stack=true ${test.additional.args}</argLine>
<forkCount>1</forkCount>
<useSystemClassLoader>false</useSystemClassLoader>
<systemPropertyVariables>

0 comments on commit b989fbc

Please sign in to comment.