8266162: Remove JPackage duplicate tests

Reviewed-by: almatvee, herrick
This commit is contained in:
Alexey Semenyuk 2021-05-13 16:30:17 +00:00
parent a259ab4a8d
commit f3c6cda476
2 changed files with 39 additions and 0 deletions

View File

@ -63,6 +63,21 @@ public class WinInstallerUiTest {
for (var withDirChooser : List.of(Boolean.TRUE, Boolean.FALSE)) {
for (var withLicense : List.of(Boolean.TRUE, Boolean.FALSE)) {
for (var withShortcutPrompt : List.of(Boolean.TRUE, Boolean.FALSE)) {
if (!withDirChooser && !withLicense && !withShortcutPrompt) {
// Duplicates SimplePackageTest
continue;
}
if (withDirChooser && !withLicense && !withShortcutPrompt) {
// Duplicates WinDirChooserTest
continue;
}
if (!withDirChooser && withLicense && !withShortcutPrompt) {
// Duplicates LicenseTest
continue;
}
data.add(new Object[]{withDirChooser, withLicense,
withShortcutPrompt});
}

View File

@ -61,6 +61,30 @@ public class WinShortcutPromptTest {
for (var withStartMenuShortcut : List.of(Boolean.TRUE, Boolean.FALSE)) {
for (var withDesktopShortcut : List.of(Boolean.TRUE, Boolean.FALSE)) {
for (var withShortcutPrompt : List.of(Boolean.TRUE, Boolean.FALSE)) {
if (withShortcutPrompt && withStartMenuShortcut
&& withDesktopShortcut) {
// Duplicates WinInstallerUiTestWithShortcutPromptTest (WinInstallerUiTest(withShortcutPrompt=true))
continue;
}
if (!withShortcutPrompt && !withStartMenuShortcut
&& !withDesktopShortcut) {
// Duplicates SimplePackageTest
continue;
}
if (!withShortcutPrompt && !withStartMenuShortcut
&& withDesktopShortcut) {
// Duplicates WinShortcutTest
continue;
}
if (!withShortcutPrompt && withStartMenuShortcut
&& !withDesktopShortcut) {
// Duplicates WinMenuTest
continue;
}
data.add(new Object[]{withStartMenuShortcut,
withDesktopShortcut, withShortcutPrompt});
}