directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Tence <vte...@videotron.ca>
Subject Re: [naming] Mail factory tests
Date Fri, 24 Dec 2004 01:17:21 GMT
Another option is to use dynamic mocks. I'd recommend jmock

http://jmock.org

- Vincent

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