Closed chrisco484 closed 10 years ago
Unfortunately there is, so far, no API methods to test a particular email in FakeSMTP.
FakeSMTP uses subethasmtp internally to do all the SMTP stuff (FakeSMTP is actually just a simple GUI for subethasmtp). You may want to include it in your tests. However you won't have any GUI
I know FakeSMTP has its own unit tests but it is possible to include the FakeSMTP in the class path of a application and have the application use FakeSMTP for the application's own unit tests?
e.g. the app's unit tests could query FakeSMTP via some Java API methods to test whether a particular email (with given time, to/from email address, subject and/or body criteria) had been dispatched to it from the application?
A friend was using another similar tool (which did not have FakeSMTP's very useful GUI) which allowed for this kind of unit test funkiness and so I thought it would be great if FakeSMTP offered this - if it doesn't already.