You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Sven Marquardt <sv...@cbb.de> on 2018/09/04 15:26:19 UTC

[java][platform] Junit tests withtin modul with maven

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.NoClassDefFoundError for every class of other modules.


Re: [java][platform] Junit tests withtin modul with maven

Posted by Sven Marquardt <sv...@cbb.de>.
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 schrieb Sven Marquardt:
> 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.NoClassDefFoundError for every class of other modules.
>

-- 

Kind regards / Mit freundlichen Grüßen
Sven Marquardt

______________________________

cbb software GmbH
Isaac-Newton-Straße 8
23562 Lübeck
Germany

phone: +49-451-39 77 1-0
fax: +49-451-39 77 1-29
website: www.cbb.de
mailto: sven.marquardt@cbb.de

Managing Director / Geschäftsführer:
Dipl.-Ing. Andreas Fechner
Dipl.-Kfm. Thomas Behrendt

Commercial Register / Handelsregister:
Amtsgericht: Lübeck
HR-Nummer: HRB 4765

Before you print it,
think about your responsibility and commitment to the ENVIRONMENT!

=====================================================================
Important Note
This email and any attachment hereto are confidential and may contain
trade secrets or may be otherwise protected from disclosure. If you
have received it in error you are in notice of this fact. Please
notify us immediately by reply email and then delete this email and
any attachment from your system. Please understand that you are not
allowed to copy this email or any attachment hereto or disclose its
contents to any other person.
Thank you.

Wichtiger Hinweis
Diese E-Mail und etwaige Anlagen koennen Betriebs- oder
Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen
enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist
Ihnen dieser Umstand hiermit bekannt. Bitte benachrichtigen Sie uns
in diesem Fall umgehend durch Ruecksendung der E-Mail und loeschen
Sie diese E-Mail einschließlich etwaiger Anlagen von Ihrem System.
Diese E-Mail und ihre Anlagen duerfen weiterhin nicht kopiert oder
an Dritte weitergegeben werden.
Vielen Dank.
=====================================================================