Skip to content

Commit

Permalink
Open packages for reflection by JUnit (#539 / #597)
Browse files Browse the repository at this point in the history
JUnit (more precisely the module `org.junit.platform.commons`)
needs to reflectively access Pioneer packages. Since some classes
aren't public, this fails with an `InaccessibleObjectException` if
Pioneer is placed on the module path. To fix this, the packages
must be opened.

Furthermore, this change fixes a mistake from #415 and exports the
new package `org.junitpioneer.jupiter.cartesian`.

Closes: #539
PR: #597
  • Loading branch information
beatngu13 committed Feb 21, 2022
1 parent 9cec7eb commit dbd8cc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/module/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@

exports org.junitpioneer.vintage;
exports org.junitpioneer.jupiter;
exports org.junitpioneer.jupiter.cartesian;
exports org.junitpioneer.jupiter.params;

opens org.junitpioneer.vintage to org.junit.platform.commons;
opens org.junitpioneer.jupiter to org.junit.platform.commons;
opens org.junitpioneer.jupiter.cartesian to org.junit.platform.commons;
opens org.junitpioneer.jupiter.params to org.junit.platform.commons;

provides org.junit.platform.launcher.TestExecutionListener
with org.junitpioneer.jupiter.issue.IssueExtensionExecutionListener;
uses org.junitpioneer.jupiter.IssueProcessor;
Expand Down

0 comments on commit dbd8cc2

Please sign in to comment.