Replies: 2 comments
|
I still have to check the |
|
I've gone back and forth on the static contract a few times, and had landed on I've added back a |
|
I still have to check the |
|
I've gone back and forth on the static contract a few times, and had landed on I've added back a |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Combining the example from: https://github.com/Netflix/jig#run-a-published-module
and the source launcher example from: https://docs.junit.org/current/api/org.junit.start/module-summary.html
into
java @junit.args --add-modules org.junit.start HelloTests.javayou'll see a lot of warnings on the console:
This seems to be related to the
requires static transitive org.apiguardian.api;directive inorg.junit.start's module descriptor: https://github.com/junit-team/junit-framework/blob/869b15510fa69f6f4660007202a416027eb7eb5f/junit-start/src/main/java/module-info.java#L28A work-around is to add
org.apiguardian.apito the list of required roots when usingjig. Like so:With that configuration, you'll get no more warnings at run-time:
Find an example using a local
libdirectory here: https://github.com/junit-team/junit-examples/tree/main/junit-source-launcherAll reactions