From 1a4657ba3985b11d8646f90b5a1d643254fc74f2 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Mon, 2 Dec 2024 12:22:10 -0500 Subject: [PATCH] comment --- .../org/apache/maven/plugins/jlink/MultipleLauncherTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/maven/plugins/jlink/MultipleLauncherTest.java b/src/test/java/org/apache/maven/plugins/jlink/MultipleLauncherTest.java index 1eec1be..adf655b 100644 --- a/src/test/java/org/apache/maven/plugins/jlink/MultipleLauncherTest.java +++ b/src/test/java/org/apache/maven/plugins/jlink/MultipleLauncherTest.java @@ -51,6 +51,7 @@ void testSingleLauncher() throws Exception { @Test void testOneMultipleLauncher() throws Exception { + // It's OK to specify one launcher with "" Field launchers = mojo.getClass().getDeclaredField("launchers"); launchers.setAccessible(true); launchers.set(mojo, List.of("l=com.example.Launch")); @@ -64,6 +65,7 @@ void testOneMultipleLauncher() throws Exception { @Test void testMultipleLaunchers() throws Exception { + // It's OK to specify multiple launchers with the "" element Field launchers = mojo.getClass().getDeclaredField("launchers"); launchers.setAccessible(true); launchers.set(mojo, List.of("l1=com.example.Launch1", "l2=com.example.Launch2")); @@ -77,7 +79,7 @@ void testMultipleLaunchers() throws Exception { @Test void testInvalidLauncherConfig() throws Exception { - // It's OK to specify one launcher with "" given + // It's an error to specify both "" and "" Field launcher = mojo.getClass().getDeclaredField("launcher"); launcher.setAccessible(true); launcher.set(mojo, "l3=com.example.Launch3");