From: Steve F. <st...@m3...> - 2003-04-30 13:22:57
|
From what I remember, you can register an implementation to provide mail for a given transport, it's in the API somewhere. When I was looking, I didn't have time to figure out how to plug in to that. S. Griffin Caprio wrote: > Steve, > > Can you expand on what a "mock mail provider" entails? > > -Griffin > --- Steve Freeman <st...@m3...> wrote: > >>One option I considered, but never got around to, >>was to implement and >>register a mock mail provider. >> >>S. >> >>James Howe wrote: >> >>>I'm writing a small utility class which will be >> >>used to send e-mail. I >> >>>would like to write the code test-first as much as >> >>possible. However, I >> >>>notice that that Java Mail API makes heavy use of >> >>static methods to >> >>>accomplish many of its tasks. I see that there >> >>are Mock implementations >> >>>of things like Transport and Message in the Mock >> >>Objects library, but >> >>>I'm not sure how to make use of them. Are there >> >>any simple examples of >> >>>using the MockObjects library to test things that >> >>use things like >> >>>javax.mail.Transport (and related classes?) >>> >>>Thanks. >>> >> >> >> >> > ------------------------------------------------------- > >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Mockobjects-java-users mailing list >>Moc...@li... >> > > https://lists.sourceforge.net/lists/listinfo/mockobjects-java-users > > > ===== > Griffin Caprio > "Your child against mine. The winner > will be hailed, the loser will be booed > until my throat hurts!" - Homer Simpson to Marge > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com |