From: Jeff M. <je...@mk...> - 2003-04-30 11:52:42
|
The mocks for Transport/Message etc are mocks of the alt.javax interfaces. Which have both mock and real implementations. The real implementations being wrappers around the javax.mail.* classes. http://www.mockobjects.com/javadoc/1.3/alt/javax/mail/package-summary.html On Tue, 2003-04-29 at 19:40, 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. -- Jeff Martin <je...@mk...> |