Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

how to mock javax.mail.Transport

  Asked By: Marty    Date: Sep 01    Category: Java    Views: 2349
  

i'm writing a unit test using EasyMock for an existing class, in one the lines i have :

Transport.send(message);

and the Transaction is a javax.mail.Transport,
and the message is a javax.mail.internet.MimeMessage.

I need to mock this Transport so it doesnt send the message anymore.

any help ...??

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on how to mock javax.mail.Transport Or get search suggestion and latest updates.




Tagged: