[
https://issues.apache.org/jira/browse/SUREFIRE-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sylwester Lachiewicz reassigned SUREFIRE-1557:
----------------------------------------------
Assignee: (was: Christian Stein)
> Test modular build on Java 10
> -----------------------------
>
> Key: SUREFIRE-1557
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1557
> Project: Maven Surefire
> Issue Type: Improvement
> Affects Versions: 2.22.0
> Reporter: Tor Egil Jacobsen
> Priority: Major
>
> A modular build on GitHub,
> [jactor-rises|https://github.com/jactor-rises/jactor-rises/tree/feature/junit.jupiter_configuration],
> fails when running with surefire 2.22.0
> All tests run perfectly fine in my IntelliJ idea. When building with maven,
> all surefire reports fails with an {{InaccessableObjectException}} with
> message similar to this one: {{java.lang.reflect.InaccessibleObjectException:
> Unable to make com.github.jactor.rises.commons.dto.UserDtoTest() accessible:
> module jactor.rises.commons does not "opens
> com.github.jactor.rises.commons.dto" to unnamed module @3fc2959f}}
> If one deletes all {{module-info.java}} files, the build succeeds. I thought
> that during unit testing, the module should be opened by the surefire plugin.
> It beats the purpose of having modular jar-files if we need to open the
> module in order to test it...
> Based on the issue created for the junit-team: [junit5-jupiter-starter-maven
> out of date?|https://github.com/junit-team/junit5-samples/issues/81]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)