Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-platform-dev] lassNotFoundException: com.sun.mail.util.PropUtil when using javax.mail.internet.InternetAddress

If your unit test depends on all of Jakarta EE being available for testing,
then you're going to need to find a way to do the unit testing by running
a complete app server as a separate program; no set of jar files is likely
to do that for you.

If your unit test depends on only some of the APIs from Jakarta EE, then
depending on which APIs you might be able to find a standalone implementation
of those APIs that you can run inside the unit testing framework.

In particular, if you are trying to do unit testing that depends on Jakarta
Mail, you can use the com.sun.mail:jakarta.mail jar file for testing, which
contains a complete implementation of Jakarta Mail.

Patrick Reinhart wrote on 10/17/19 11:37 PM:
> The problem happens in test phase of our build after the compilation. But comparing the both libraries (old and new one) those where different content wise. It is just that the current behavior has changed now...
> What would be the correct unit test dependency in that case?
> Best regards Patrick 
>> Am 18.10.2019 um 05:03 schrieb Bill Shannon <bill.shannon@xxxxxxxxxx>:

Back to the top