diff --git a/appserver/tests/functional/embeddedtest/README.md b/appserver/tests/functional/embeddedtest/README.md index 3b5f93215ea..dbd022c365b 100644 --- a/appserver/tests/functional/embeddedtest/README.md +++ b/appserver/tests/functional/embeddedtest/README.md @@ -14,7 +14,7 @@ example: payara-embedded-all-6.2023.8.RC1.jar From the location ${PAYARA_HOME}/appserver/tests/functional/embeddedtest, run the command: -> mvn clean compile test -P {FullProfile/WebProfile} -Dpayara.version="6.2023.8.RC1" +> mvn clean -P {FullProfile/WebProfile} -Dpayara.version="6.2023.8.RC1" compile test the test is designed to adapt to jdk 8, 11, or 17. diff --git a/appserver/tests/functional/embeddedtest/pom.xml b/appserver/tests/functional/embeddedtest/pom.xml index a9c9cd73b79..f4ebf8be1c7 100644 --- a/appserver/tests/functional/embeddedtest/pom.xml +++ b/appserver/tests/functional/embeddedtest/pom.xml @@ -2,7 +2,7 @@ + http://maven.apache.org/xsd/maven-4.0.0.xsd"> fish.payara.extras 4.0.0 @@ -42,15 +42,6 @@ maven-embedded-deployment-test - - org.apache.maven.plugins - maven-surefire-plugin - 2.22.0 - - --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-exports=java.base/sun.net.www=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.desktop/java.beans=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED - - - org.apache.maven.plugins maven-install-plugin @@ -106,6 +97,18 @@ 11 11 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.0 + + --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-exports=java.base/sun.net.www=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.desktop/java.beans=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED + + + + Jdk17 @@ -116,6 +119,18 @@ 17 17 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.0 + + --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-exports=java.base/sun.net.www=ALL-UNNAMED --add-exports=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.desktop/java.beans=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED + + + + FullProfile diff --git a/appserver/tests/payara-samples/samples/rolesallowed-unprotected-methods/pom.xml b/appserver/tests/payara-samples/samples/rolesallowed-unprotected-methods/pom.xml index de769f6afa4..b356ff05545 100644 --- a/appserver/tests/payara-samples/samples/rolesallowed-unprotected-methods/pom.xml +++ b/appserver/tests/payara-samples/samples/rolesallowed-unprotected-methods/pom.xml @@ -115,17 +115,25 @@ - - - - org.apache.maven.plugins - maven-failsafe-plugin - - - --add-opens java.base/java.lang=ALL-UNNAMED - - - - - + + + + failsafe-jdk17 + + [17,) + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${maven.failsafe.plugin.version} + + --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.management/javax.management.openmbean=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.logging/java.util.logging=ALL-UNNAMED --add-opens=java.base/sun.net.www=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.desktop/java.beans=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED + + + + + + diff --git a/appserver/tests/quicklook/build.xml b/appserver/tests/quicklook/build.xml index d2b8e3dbb20..00622d11e25 100644 --- a/appserver/tests/quicklook/build.xml +++ b/appserver/tests/quicklook/build.xml @@ -385,6 +385,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/appserver/tests/quicklook/ejb/mdb/src/test/mdb/MDBTests.java b/appserver/tests/quicklook/ejb/mdb/src/test/mdb/MDBTests.java index ae3579f8a00..5b98cdee296 100755 --- a/appserver/tests/quicklook/ejb/mdb/src/test/mdb/MDBTests.java +++ b/appserver/tests/quicklook/ejb/mdb/src/test/mdb/MDBTests.java @@ -87,7 +87,7 @@ public void runJMSAppTest(String mdbAppDir) throws Exception { String clientJar = cwd + File.separator + mdbAppDir + mdbApp + "Client.jar"; String gfClientJar = GLASSFISH_HOME + File.separator + "lib" + File.separator + "gf-client.jar"; cmd = APPCLIENT - + " --add-opens=java.base/java.lang=ALL-UNNAMED " + + " --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.management/javax.management.openmbean=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.logging/java.util.logging=ALL-UNNAMED --add-opens=java.base/sun.net.www=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.desktop/java.beans=ALL-UNNAMED --add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED " + GLASSFISH_APPCLIENT_MAIN_CLASS_NAME + " -client " + clientJar + " -targetserver" + " localhost:3700"