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

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


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



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.