Skip to content

Commit

Permalink
Adjust JLinkOptionsTest.java after JEP 493
Browse files Browse the repository at this point in the history
  • Loading branch information
jerboaa committed Dec 6, 2024
1 parent a264230 commit 23114c1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/jdk/tools/jpackage/share/JLinkOptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,26 @@ public static Collection input() {
"--jlink-options",
"--strip-debug --no-man-pages --no-header-files",
"--jlink-options",
"--bind-services",
"--verbose --bind-services --limit-modules java.smartcardio,jdk.crypto.cryptoki,java.desktop",
},
// with bind-services should have some services
// with limit-modules and bind-services should have them in the result
new String[]{"java.smartcardio", "jdk.crypto.cryptoki"},
null,
},
// bind-services
{"Hello", new String[]{
"--jlink-options", "--bind-services",
"--jlink-options",
"--bind-services --limit-modules jdk.jartool,jdk.unsupported,java.desktop",
},
// non modular should have everything
// non modular should have at least the module limits
new String[]{"jdk.jartool", "jdk.unsupported"},
null,
},

// jlink-options --bind-services
{"com.other/com.other.Hello", new String[]{
"--jlink-options", "--bind-services",
"--jlink-options",
"--bind-services --limit-modules java.smartcardio,jdk.crypto.cryptoki,java.desktop",
},
// with bind-services should have some services
new String[]{"java.smartcardio", "jdk.crypto.cryptoki"},
Expand Down

0 comments on commit 23114c1

Please sign in to comment.