directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: [naming] Mail factory tests
Date Fri, 24 Dec 2004 00:21:21 GMT
I read about it in Vincent Massol's Junit in Action book (though I don't 
have it to hand), if that helps.

- Brett

Phil Steitz wrote:

> Brett Porter wrote:
>
>> Probably a couple of things. I don't remember the name of the 
>> library, but there is a mock implementation of javamail that could be 
>> used to pretend to send mail, but not actually do it.
>>
>> I guess the other alternative is to embed something like James?
>>
>> Do you really need to send a mail to test it, or is obtaining a valid 
>> session enough?
>
>
> Gettting a Session / MimePartDataSource is probably good enough. I 
> will see if I can find the mock javamail impl.
>
> Phil
>
>


Mime
View raw message