Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Dec 2, 2024
1 parent 4ff98c1 commit 1a4657b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void testSingleLauncher() throws Exception {

@Test
void testOneMultipleLauncher() throws Exception {
// It's OK to specify one launcher with "<launchers>"
Field launchers = mojo.getClass().getDeclaredField("launchers");
launchers.setAccessible(true);
launchers.set(mojo, List.of("l=com.example.Launch"));
Expand All @@ -64,6 +65,7 @@ void testOneMultipleLauncher() throws Exception {

@Test
void testMultipleLaunchers() throws Exception {
// It's OK to specify multiple launchers with the "<launchers>" element
Field launchers = mojo.getClass().getDeclaredField("launchers");
launchers.setAccessible(true);
launchers.set(mojo, List.of("l1=com.example.Launch1", "l2=com.example.Launch2"));
Expand All @@ -77,7 +79,7 @@ void testMultipleLaunchers() throws Exception {

@Test
void testInvalidLauncherConfig() throws Exception {
// It's OK to specify one launcher with "<launcher>" given
// It's an error to specify both "<launcher>" and "<launchers>"
Field launcher = mojo.getClass().getDeclaredField("launcher");
launcher.setAccessible(true);
launcher.set(mojo, "l3=com.example.Launch3");
Expand Down

0 comments on commit 1a4657b

Please sign in to comment.