GreenMail v1.0 Released
Being an admirer of Extreme Programming I liked to write test for the emailing logic. I first started using Dumbster for SMTP testing, but found it bulky to use with non-easy-ways to do things. For example, to retrieve an email, one has to create an iterator and iterate you way to the email ordinal in question (all with ugly scaffolding code around it). Why can’t I simply just get, say, an array back, which is dead easy to index? Beats me. Anyway, looking at it from the bright side GreenMail helped clean up our test code quite a bit.
Apart from the shortcomings of Dumbster, our application required a library that could support SMTP, POP3, IMAP, SMTPS, POP3, and IMAPS with configurable user accounts and credentials. Dumbster is only for testing SMTP with no user account support. Further, looking into Dumbster's source code reveals polling wait statements which appears to have caused various exceptions of the following kind
Since there were no open source library available to do the job on the other protocols, and since the world could need a email test server library, work began on GreenMail. A couple of weekends later GreenMail was born (30 minutes ago that is). My hope is that developers, QA and other people will find it a valuable and easy-to-use tool in their testing efforts.
I'd love to hear any feedback! Good or bad. Mostly bad so GreenMail can improve and take over the world, wahahahaha....
Oh, by the way, here is the link to GreenMail
del.icio.us
technorati
[more]
Re: GreenMail v1.0 Released
protected void tearDown() throws Exception {
super.tearDown();
if (servers != null){
servers.stop();
Thread.sleep(5);
}
}