JDK-8215036 : Create initial set of tests for jpackage create-installer mode
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-08
  • Updated: 2019-03-22
  • Resolved: 2018-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Related Reports
Relates :  
Description
Initial set of tests will include tests below for all create-installer modes.

MSI:
JPackageCreateInstallerFileAssociationsTest.java - Verifies --file-associations by creating installer with file association and opening associated file via AWT API to make sure that associated application is executed with correct file. It also checks for registry being created and removed after uninstall.
JPackageCreateInstallerLicenseTest.java - Verifies --license-file by creating installer with license. User during installation will need manually verify that license is displayed during installation process. See JDK-8214495 for known issues.
JPackageCreateInstallerTest.java - Simple installer test with minimal set of arguments.
JPackageCreateInstallerWinDirChooserTest.java - Verifies --win-dir-chooser to check that installer will ask user to select destination folder. See JDK-8214566 for know issues.
JPackageCreateInstallerWinMenuGroupTest.java - Verifies --win-menu-group by verifying that application was installed into correct start menu folder.
JPackageCreateInstallerWinMenuTest.java - Verifies --win-menu by verifying shortcut name in start menu.
JPackageCreateInstallerWinPerUserInstallTest.java - Verifies --win-per-user-install that application got installed per user.
JPackageCreateInstallerWinRegistryNameTest.java - Verifies --win-registry-name that application uses provided name when creating registry for file associations.
JPackageCreateInstallerWinShortcutTest.java - Verifies --win-shortcut that installer created desktop shortcut.

EXE
JPackageCreateInstallerFileAssociationsTest.java - Verifies --file-associations by creating installer with file association and opening associated file via AWT API to make sure that associated application is executed with correct file. It also checks for registry being created and removed after uninstall.
JPackageCreateInstallerLicenseTest.java - Verifies --license-file by creating installer with license. User during installation will need manually verify that license is displayed during installation process. See JDK-8214495 for known issues.
JPackageCreateInstallerTest.java - Simple installer test with minimal set of arguments.
JPackageCreateInstallerWinDirChooserTest.java - Verifies --win-dir-chooser to check that installer will ask user to select destination folder. See JDK-8214566 for known issues.
JPackageCreateInstallerWinMenuGroupTest.java - Verifies --win-menu-group by verifying that application was installed into correct start menu folder.
JPackageCreateInstallerWinMenuTest.java - Verifies --win-menu by verifying shortcut name in start menu.
JPackageCreateInstallerWinPerUserInstallTest.java - Verifies --win-per-user-install that application got installed per user.
JPackageCreateInstallerWinRegistryNameTest.java - Verifies --win-registry-name that application uses provided name when creating registry for file associations.
JPackageCreateInstallerWinShortcutTest.java - Verifies --win-shortcut that installer created desktop shortcut.

DMG
JPackageCreateInstallerFileAssociationsTest  - Verifies --file-associations by creating installer with file association and opening associated file via AWT API to make sure that associated application is executed with correct file. 
JPackageCreateInstallerInstallDirTest - Verifies --install-dir by checking that application is being installed into specified folder.
JPackageCreateInstallerLicenseTest - Verifies --license-file by creating installer with license.
JPackageCreateInstallerTest - Simple installer test with minimal set of arguments.

PKG
JPackageCreateInstallerFileAssociationsTest  - Verifies --file-associations by creating installer with file association and opening associated file via AWT API to make sure that associated application is executed with correct file. 
JPackageCreateInstallerInstallDirTest - Verifies --install-dir by checking that application is being installed into specified folder.
JPackageCreateInstallerLicenseTest - Verifies --license-file by creating installer with license.
JPackageCreateInstallerTest - Simple installer test with minimal set of arguments.

DEB
JPackageCreateInstallerFileAssociationsTest  - Verifies --file-associations by creating installer with file association and opening associated file via AWT API to make sure that associated application is executed with correct file. 
JPackageCreateInstallerInstallDirTest - Verifies --install-dir by checking that application is being installed into specified folder.
JPackageCreateInstallerLicenseTest - Verifies --license-file by creating installer with license.
JPackageCreateInstallerTest - Simple installer test with minimal set of arguments.
JPackageCreateInstallerBundleNameTest - Verifies --linux-bundle-name by checking that bundle was created with name provided via this argument.
JPackageCreateInstallerPackageDepsTest - Verifies --linux-package-deps by creating bundle with dependency and checking that this dependency is required by bundle.
JPackageCreateInstallerMaintainerTest - Verifies --linux-deb-maintainer by checking deb package information that it includes provided e-mail.

RPM
JPackageCreateInstallerFileAssociationsTest  - Verifies --file-associations by creating installer with file association and opening associated file via AWT API to make sure that associated application is executed with correct file. 
JPackageCreateInstallerInstallDirTest - Verifies --install-dir by checking that application is being installed into specified folder.
JPackageCreateInstallerLicenseTest - Verifies --license-file by creating installer with license.
JPackageCreateInstallerTest - Simple installer test with minimal set of arguments.
JPackageCreateInstallerBundleNameTest - Verifies --linux-bundle-name by checking that bundle was created with name provided via this argument.
JPackageCreateInstallerPackageDepsTest - Verifies --linux-package-deps by creating bundle with dependency and checking that this dependency is required by bundle.
JPackageCreateInstallerLicenseTypeTest - Verifies --linux-rpm-license-type by checking rpm package information that it includes license type in package information.