Skip to content

Modularize example program in junit-source-launcher#754

Closed
sormuras wants to merge 3 commits intomainfrom
modular-source-program
Closed

Modularize example program in junit-source-launcher#754
sormuras wants to merge 3 commits intomainfrom
modular-source-program

Conversation

@sormuras
Copy link
Member

Overview

This change gets rid of --add-modules org.junit.start command-line argument by introducing more structural configuration, like a module-info.java file and an example package, and also an explicit class declaration - as compact source file cannot reside in a named package.


I hereby agree to the terms of the JUnit Contributor License Agreement.

Get rid of `--add-modules org.junit.start` but introduce
more structural configuration, like a `module-info.java`
file and an `example` package, and also an explicit class
declaration - as compact source file cannot reside in a
named package.
* https://www.eclipse.org/legal/epl-v20.html
*/

package example;
Copy link
Contributor

@mpkorstanje mpkorstanje Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While a bit more verbose using com.example.project would make this consistent with the other examples and provide just a bit more conventional context to make the package references elsewhere in the code instantly legible.

@sormuras sormuras closed this Mar 20, 2026
@sormuras sormuras deleted the modular-source-program branch March 20, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants