You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "John Neffenger (JIRA)" <ji...@apache.org> on 2019/03/26 15:52:00 UTC

[jira] [Created] (NETBEANS-2313) Module ${related.module.name} not found for JUnit test

John Neffenger created NETBEANS-2313:
----------------------------------------

             Summary: Module ${related.module.name} not found for JUnit test
                 Key: NETBEANS-2313
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2313
             Project: NetBeans
          Issue Type: Bug
          Components: java - JUnit
    Affects Versions: 11.0
         Environment: Product: Apache NetBeans IDE 11.0 (Build incubator-netbeans-release-404-on-20190319)
Java: OpenJDK 64-Bit Server VM 12+33
System: Linux version 4.15.0-46-generic running on amd64

            Reporter: John Neffenger
         Attachments: related-module-name.log

When I try to run a JUnit 4.12 test case in a non-modular project, I get the following error:

{noformat}
Error occurred during initialization of boot layer
java.lang.module.FindException: Module ${related.module.name} not found
{noformat}

The full output with the Ant Verbosity Level set to _Verbose_ is attached below.

I can work around the issue by changing the project's Run-time Test Libraries under Project Properties > Libraries > Run Tests as follows.

*Before (default, fails)*

{noformat}
Modulepath
    Modulepath for Compiling Tests
Classpath
    Classpath for Compiling Tests
    Compiled Tests
{noformat}

*After (works)*

{noformat}
Modulepath
Classpath
    Modulepath for Compiling Tests
    Classpath for Compiling Tests
    Compiled Tests
{noformat}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists