For everyone else searching for this. This is not possible with maven.
The unittests that require other modules, have to sit in the application
modle. More infos here:
https://dzone.com/articles/nb-mvn-functional-tests
https://netbeans.org/bugzilla/show_bug.cgi?id=190992
Am 04.09.2018 um 17:26
Is there a way to unittest in the module itself when the module depends
on other modules? Like i have my own module A that depends on module B
and no i want to do a unit tests where a class of module B is in the
cass of Module A that i want to test. If i do it now i get an
java.lang.NoClassDefFound