You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Pavel_K (Jira)" <ji...@apache.org> on 2020/07/07 10:55:00 UTC

[jira] [Updated] (NETBEANS-4550) NetBeans show error in test classes when we have module-info in test

     [ https://issues.apache.org/jira/browse/NETBEANS-4550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel_K updated NETBEANS-4550:
------------------------------
    Description: 
Here is a test project [https://github.com/PashaTurok/jpms-resource-test1] that has module-info in src/test/java (it is possible starting from surefire/failsafe 3.0.0-M5.

When we do in-module testing the name of the src/test/java/module-info is the same as the name of src/main/java/module-info. For details see [https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world.html]

However, NB works badly with such configuration it shows erros and doesn't fix imports etc. See the picture.  !Screenshot from 2020-07-07 13-44-17.png!

 

  was:
Here is a test project [https://github.com/PashaTurok/jpms-resource-test1] that has module-info in src/test/java (it is possible starting from surefire/failsafe 3.0.0-M5.

When we do in-module testing we the name of the src/test/java/module-info is the same as the name of src/main/java/module-info. For details see [https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world.html]

However, NB works badly with such configuration it shows erros and doesn't fix imports etc. See the picture. !Screenshot from 2020-07-07 13-44-17.png!

 


> NetBeans show error in test classes when we have module-info in test
> --------------------------------------------------------------------
>
>                 Key: NETBEANS-4550
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4550
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.0
>            Reporter: Pavel_K
>            Priority: Major
>         Attachments: Screenshot from 2020-07-07 13-44-17.png
>
>
> Here is a test project [https://github.com/PashaTurok/jpms-resource-test1] that has module-info in src/test/java (it is possible starting from surefire/failsafe 3.0.0-M5.
> When we do in-module testing the name of the src/test/java/module-info is the same as the name of src/main/java/module-info. For details see [https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world.html]
> However, NB works badly with such configuration it shows erros and doesn't fix imports etc. See the picture.  !Screenshot from 2020-07-07 13-44-17.png!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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