commit | 25a81c4be3e4a06b25c4fa4915a248dfc4816c06 | [log] [tgz] |
---|---|---|
author | David Matějček <dmatej@seznam.cz> | Wed Sep 01 11:41:15 2021 +0200 |
committer | David Matějček <dmatej@seznam.cz> | Thu Sep 09 11:36:12 2021 +0200 |
tree | 8ad2f58f208c855b6a9977b282b700956db49557 | |
parent | 22d287dd38a234c680e0fb315c0911a53218b960 [diff] |
Issue #23507 kernel now uses JUnit5 instead Junit4 + enabled and fixed tests - lesson: whatever you will annotate with @Service will be discovered - lesson: whatever annotated with @Secure cannot be instantiated in tests - lesson: @Secured services can be mocked - resolution: ConfigApiTest must die, HK2Junit5Extension must be extensible to allow customizations for the module (own dependencies) - tests were enabled, fixed and extended, I hope they are stable enough - mocks and examples were moved to the package based on the name of the module - several classes in tests removed, because they weren't used. - DomainTest.xml was updated - based on real domain.xml from current GlassFish 6.2.1 Signed-off-by: David Matějček <dmatej@seznam.cz>
Eclipse GlassFish is a Jakarta EE compatible implementation sponsored by the Eclipse Foundation. Eclipse GlassFish 5.1 is also Java EE 8 Compatible.
Prerequisites:
Currently in the master branch artifacts are being pulled from OSSRH staging.
Run the full build:
mvn -Pstaging install
Locate the Zip distributions:
Locate staged distributions:
Running Eclipse GlassFish QuickLook tests:
mvn -f appserver/tests/quicklook/pom.xml test -Dglassfish.home=appserver/distributions/glassfish/target/stage/glassfish6/glassfish
For more details, see QuickLook_Test_Instructions
Build Eclipse GlassFish using the gfbuild.sh
script, OR build as stated above and copy the distributions to the bundles
folder using:
./gfbuild.sh archive_bundles
This will result in:
bundles glassfish.zip nucleus-new.zip web.zip
Run tests using:
./gftest [name of test]
Where [name of test] is one or more off:
"deployment_all" "ejb_group_1" "ejb_group_2" "ejb_group_3" "ejb_web_all" "cdi_all" "ql_gf_full_profile_all" "ql_gf_nucleus_all" "ql_gf_web_profile_all" "nucleus_admin_all" "jdbc_all" "batch_all" "persistence_all" "connector_group_1" "connector_group_2" "connector_group_3" "connector_group_4"
(note the project contains more than these tests, but they may not be up to date)
E.g.
./gftest deployment_all
glassfish6/bin/asadmin start-domain
glassfish6/bin/asadmin stop-domain